[Forensics-changes] [yara] 300/415: Fix memory leak in yr_re_exec
Hilko Bengen
bengen at moszumanska.debian.org
Thu Apr 3 05:43:17 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 5d8dc70be7a7b2ea7a43f17a54231ed55ba5b493
Author: Victor M. Alvarez <plusvic at gmail.com>
Date: Sat Dec 7 21:51:59 2013 +0100
Fix memory leak in yr_re_exec
---
libyara/re.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/libyara/re.c b/libyara/re.c
index 868a92a..3a2b5f8 100644
--- a/libyara/re.c
+++ b/libyara/re.c
@@ -1255,8 +1255,9 @@ int yr_re_exec(
}
}
- if (flags & RE_FLAGS_WIDE && *(input + 1) != 0)
- break;
+ if (fibers.head != NULL &&
+ flags & RE_FLAGS_WIDE && *(input + 1) != 0)
+ _yr_re_fiber_kill_tail(fibers.head, &fibers, &storage->fiber_pool);
if (flags & RE_FLAGS_BACKWARDS)
input -= character_size;
--
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