diff options
author | Allan McRae <allan@archlinux.org> | 2016-09-03 12:13:35 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2016-09-03 12:38:13 +0200 |
commit | fac4831a091eda447780d5d1e1e572b14ebb0338 (patch) | |
tree | 93454decbec152d91f4400873034814eb4edbfd1 /lib | |
parent | d560a9aecd4027bf23e3d5caf556624797e8f939 (diff) | |
download | pacman-fac4831a091eda447780d5d1e1e572b14ebb0338.tar.gz pacman-fac4831a091eda447780d5d1e1e572b14ebb0338.tar.xz |
Fix memory leak in remove_notify_needed_optdepends
Also add pactest which captures this leak when run under valgrind.
Reported-by: Sergey Petrenko
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libalpm/remove.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/remove.c b/lib/libalpm/remove.c index 45f7c2f4..173dbc69 100644 --- a/lib/libalpm/remove.c +++ b/lib/libalpm/remove.c @@ -189,6 +189,7 @@ static void remove_notify_needed_optdepends(alpm_handle_t *handle, alpm_list_t * }; EVENT(handle, &event); } + free(optstring); } } } |