From: graham.gower Date: Thu, 19 Nov 2009 06:39:32 +0000 (+0000) Subject: Plug a leak. X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c03e55b08e74a0d6ddb8cfd3d691444dd911a90e;p=oweals%2Fopkg-lede.git Plug a leak. git-svn-id: http://opkg.googlecode.com/svn/trunk@339 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- diff --git a/libopkg/opkg_remove.c b/libopkg/opkg_remove.c index aadfa6a..6de97a9 100644 --- a/libopkg/opkg_remove.c +++ b/libopkg/opkg_remove.c @@ -208,6 +208,8 @@ static int remove_autoinstalled (opkg_conf_t *conf, pkg_t *pkg) else opkg_message (conf, OPKG_INFO, "%s was autoinstalled and is still required by " "%d installed packages\n", buffer, deps); + if (dependents) + free(dependents); } free (buffer); }