[Forensics-changes] [yara] 320/368: Fix resource leak
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:30:53 UTC 2017
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag v3.5.0
in repository yara.
commit ff383e2ac039281f7c73a2864982b5f4474bcad3
Author: plusvic <plusvic at gmail.com>
Date: Wed Jun 15 13:32:19 2016 +0200
Fix resource leak
---
libyara/exec.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/libyara/exec.c b/libyara/exec.c
index 0ae4bc0..6c57aef 100644
--- a/libyara/exec.c
+++ b/libyara/exec.c
@@ -827,9 +827,10 @@ int yr_execute_code(
r1.i = *(uint64_t*)(ip + 1);
ip += sizeof(uint64_t);
- FAIL_ON_ERROR(yr_modules_load(
- (char*) r1.p,
- context));
+ result = yr_modules_load((char*) r1.p, context);
+
+ if (result != ERROR_SUCCESS)
+ stop = TRUE;
break;
--
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