Plug a leak.
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Thu, 19 Nov 2009 06:39:32 +0000 (06:39 +0000)
committergraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Thu, 19 Nov 2009 06:39:32 +0000 (06:39 +0000)
git-svn-id: http://opkg.googlecode.com/svn/trunk@339 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

libopkg/opkg_remove.c

index aadfa6aa6d4b9925775b978fba780fbf9c36d4f3..6de97a91b18c9e8a432505a573f5f8963ba67f3b 100644 (file)
@@ -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);
   }