Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/remove.c
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2016-09-03 20:13:35 +1000
committerAndrew Gregory <andrew.gregory.8@gmail.com>2017-05-08 23:27:42 -0400
commit5a7204ee1874c2d826578089a9b4abecff0d9dc1 (patch)
tree9bd23d4dbb5be0eb4ac1a34b387827377abae76b /lib/libalpm/remove.c
parentd6b6896a132c53c3b078707b70e25c30c6e6ce3f (diff)
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> (cherry picked from commit fac4831a091eda447780d5d1e1e572b14ebb0338)
Diffstat (limited to 'lib/libalpm/remove.c')
-rw-r--r--lib/libalpm/remove.c1
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);
}
}
}