diff options
author | Dima Kogan <dima@secretsauce.net> | 2014-06-25 21:50:15 -0700 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-08-22 20:38:26 +0900 |
commit | 0d0ef961855b7aefa4529c49d05e1785c968131f (patch) | |
tree | f5881aacc43a098e141b152b7a6d9c8d58912561 /library.c | |
parent | a60a85bad96ac67ad1a8f5f53fed4f32c3f4303d (diff) | |
download | ltrace-0d0ef961855b7aefa4529c49d05e1785c968131f.tar.gz ltrace-0d0ef961855b7aefa4529c49d05e1785c968131f.tar.bz2 ltrace-0d0ef961855b7aefa4529c49d05e1785c968131f.zip |
added forgotten free(), forgotten return
Diffstat (limited to 'library.c')
-rw-r--r-- | library.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; } |