From c03e55b08e74a0d6ddb8cfd3d691444dd911a90e Mon Sep 17 00:00:00 2001 From: graham.gower Date: Thu, 19 Nov 2009 01:39:32 -0500 Subject: 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); } -- cgit v0.9.1