[Forensics-changes] [yara] 45/415: Bug fix: Missing reference count increment at yara-python

Hilko Bengen bengen at moszumanska.debian.org
Thu Apr 3 05:42:42 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch debian
in repository yara.

commit 0bb0d2c5826b1720c3ba9140757ca3a67b2156c0
Author: Victor M. Alvarez <plusvic at gmail.com>
Date:   Sat Nov 21 01:18:17 2009 +0000

    Bug fix: Missing reference count increment at yara-python
---
 yara-python/yara-python.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/yara-python/yara-python.c b/yara-python/yara-python.c
index fe1174e..791ef80 100644
--- a/yara-python/yara-python.c
+++ b/yara-python/yara-python.c
@@ -190,7 +190,7 @@ static void Match_dealloc(PyObject *self)
 static PyObject * Match_Repr(PyObject *self)
 { 
     Match *object = (Match *) self;
-    
+	Py_INCREF(object->rule);
     return object->rule;
 }
 
@@ -533,7 +533,7 @@ PyObject * Rules_match(PyObject *self, PyObject *args, PyObject *keywords)
         {
             matches = PyList_New(0);
         
-            result = yr_scan_mem((unsigned char*) data, (unsigned int) length, object->context, callback, matches);
+			result = yr_scan_mem((unsigned char*) data, (unsigned int) length, object->context, callback, matches);
 
             if (result != ERROR_SUCCESS)
             {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git



More information about the forensics-changes mailing list