summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-12 00:02:24 (EST)
committer graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-12 00:02:24 (EST)
commit4c22d4a7b34aeea993310a65c6c4c15a15df5646 (patch)
tree2fbf900ec025d188aa6abd8946d17c047aab03e4
parent3e11844f829eef5260ab13fe0d95594a77a1d065 (diff)
Fix leak when downgrading a package.
git-svn-id: http://opkg.googlecode.com/svn/trunk@285 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
-rw-r--r--libopkg/opkg_install.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libopkg/opkg_install.c b/libopkg/opkg_install.c
index 6b69da9..a76322d 100644
--- a/libopkg/opkg_install.c
+++ b/libopkg/opkg_install.c
@@ -203,6 +203,8 @@ opkg_error_t opkg_install_by_name(opkg_conf_t *conf, const char *pkg_name)
} else if (cmp < 0) {
new->dest = old->dest;
old->state_want = SW_DEINSTALL; /* Here probably the problem for bug 1277 */
+ free(old_version);
+ free(new_version);
}
}