summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-23 21:35:17 (EST)
committer graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-23 21:35:17 (EST)
commit22be42698db49235c24dbed4366d197a8342b064 (patch)
tree228d54f8aeaa51bae61813b2e02c86e18d8b11ce
parent8fbf6904fb7c293eb2d547db4e8b85fa57dc8bc3 (diff)
Fix a leak found when using --force-reinstall.
git-svn-id: http://opkg.googlecode.com/svn/trunk@355 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
-rw-r--r--libopkg/opkg_install.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libopkg/opkg_install.c b/libopkg/opkg_install.c
index 96e6080..3ee7242 100644
--- a/libopkg/opkg_install.c
+++ b/libopkg/opkg_install.c
@@ -201,9 +201,9 @@ 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);
}
+ free(old_version);
+ free(new_version);
}
/* XXX: CLEANUP: The error code of opkg_install_by_name is really