From 05bad9c0d5f053b6b8c427f161adb83a9c3e3612 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 13 Jan 2010 18:10:03 +0100 Subject: [PATCH] xbps_remove_pkg: fix a memleak, thanks valgrind. --HG-- extra : convert_revision : xtraeme%40gmail.com-20100113171003-aiome0xxe5l1f96a --- lib/remove.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/remove.c b/lib/remove.c index 4442b252..6d17ef66 100644 --- a/lib/remove.c +++ b/lib/remove.c @@ -214,6 +214,8 @@ xbps_remove_pkg(const char *pkgname, const char *version, bool update) prop_object_release(dict); return rv; } + prop_object_release(dict); + /* * Run the post remove action if REMOVE file is there * and we aren't updating a package.