[ltrace-commits] 06/13: added forgotten free(), forgotten return
Petr Machata
pmachata-guest at moszumanska.debian.org
Fri Jul 25 11:05:29 UTC 2014
This is an automated email from the git hooks/post-receive script.
pmachata-guest pushed a commit to branch master
in repository ltrace.
commit 04606b1bc1b0542c1ccd9c4c7f6b084edfd6f794
Author: Dima Kogan <dima at secretsauce.net>
Date: Wed Jun 25 21:50:15 2014 -0700
added forgotten free(), forgotten return
---
library.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/library.c b/library.c
index 562b52a..3754af1 100644
--- a/library.c
+++ b/library.c
@@ -433,8 +433,10 @@ int library_exported_names_push(struct library_exported_names *names,
return -1;
result = vect_pushback(aliases, &namedup);
- if (result != 0)
+ if (result != 0) {
+ free(namedup);
return result;
+ }
return 0;
}
@@ -522,6 +524,7 @@ bool library_exported_names_each_alias(
.failure = false};
VECT_EACH(*aliases, const char*, NULL,
library_exported_names_each_alias_cb, &context);
+ return true;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/ltrace.git
More information about the ltrace-commits
mailing list