summaryrefslogtreecommitdiff
path: root/library.c
diff options
context:
space:
mode:
authorDima Kogan <dima@secretsauce.net>2014-06-25 21:50:15 -0700
committerChanho Park <chanho61.park@samsung.com>2014-08-22 20:38:26 +0900
commit0d0ef961855b7aefa4529c49d05e1785c968131f (patch)
treef5881aacc43a098e141b152b7a6d9c8d58912561 /library.c
parenta60a85bad96ac67ad1a8f5f53fed4f32c3f4303d (diff)
downloadltrace-0d0ef961855b7aefa4529c49d05e1785c968131f.tar.gz
ltrace-0d0ef961855b7aefa4529c49d05e1785c968131f.tar.bz2
ltrace-0d0ef961855b7aefa4529c49d05e1785c968131f.zip
added forgotten free(), forgotten return
Diffstat (limited to 'library.c')
-rw-r--r--library.c5
1 files changed, 4 insertions, 1 deletions
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;
}