From f7eccd4bb54039f94312a56b40599d7cb446951e Mon Sep 17 00:00:00 2001 From: ticktock35 Date: Mon, 15 Dec 2008 00:18:44 -0500 Subject: opkg: (leak fixing, day 2) lots and lots of memory leaks fixed git-svn-id: http://opkg.googlecode.com/svn/trunk@115 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'libopkg/opkg_install.c') diff --git a/libopkg/opkg_install.c b/libopkg/opkg_install.c index 6c1822c..f6666b2 100644 --- a/libopkg/opkg_install.c +++ b/libopkg/opkg_install.c @@ -394,6 +394,7 @@ int satisfy_dependencies_for(opkg_conf_t *conf, pkg_t *pkg) } if (ndepends <= 0) { + pkg_vec_free(depends); return 0; } @@ -966,7 +967,7 @@ int opkg_install_pkg(opkg_conf_t *conf, pkg_t *pkg, int from_upgrade) signal(SIGINT, old_handler); else sigprocmask(SIG_UNBLOCK, &newset, &oldset); - + pkg_vec_free (replacees); return 0; @@ -996,6 +997,7 @@ int opkg_install_pkg(opkg_conf_t *conf, pkg_t *pkg, int from_upgrade) else sigprocmask(SIG_UNBLOCK, &newset, &oldset); + pkg_vec_free (replacees); return err; } opkg_set_current_state (conf, OPKG_STATE_NONE, NULL); -- cgit v0.9.1