From 20fb38142b659a56d4eab62d8908fd4203db9e5a Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 29 Aug 2013 12:06:04 +0200 Subject: [PATCH] lib/package_unpack.c: fixed two memleaks. --- lib/package_unpack.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/package_unpack.c b/lib/package_unpack.c index 81645cda..34a20544 100644 --- a/lib/package_unpack.c +++ b/lib/package_unpack.c @@ -604,6 +604,8 @@ unpack_archive(struct xbps_handle *xhp, 0, pkgver, "%s: removed obsolete entry: %s", pkgver, file); xbps_object_release(obj); } + xbps_object_release(old_filesd); + xbps_object_release(obsoletes); out: if (xbps_object_type(filesd) == XBPS_TYPE_DICTIONARY)