From 4c22d4a7b34aeea993310a65c6c4c15a15df5646 Mon Sep 17 00:00:00 2001 From: graham.gower Date: Thu, 12 Nov 2009 00:02:24 -0500 Subject: Fix leak when downgrading a package. git-svn-id: http://opkg.googlecode.com/svn/trunk@285 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- 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); } } -- cgit v0.9.1