summaryrefslogtreecommitdiffstats
path: root/libopkg/pkg.c
diff options
context:
space:
mode:
authorticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2008-12-15 00:26:01 (EST)
committer ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2008-12-15 00:26:01 (EST)
commit5b68464bd8b8405fae90c1d96cdd7367a506bd5c (patch)
tree6dceed309a780f46317da5edc6bb67b74c307ec4 /libopkg/pkg.c
parent9514ede74ec0bcb994a6f6dae3676accaff6cd97 (diff)
opkg: balance the installed_files reference count
reducing some memory leaks git-svn-id: http://opkg.googlecode.com/svn/trunk@140 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg/pkg.c')
-rw-r--r--libopkg/pkg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libopkg/pkg.c b/libopkg/pkg.c
index e15fc24..26b6efe 100644
--- a/libopkg/pkg.c
+++ b/libopkg/pkg.c
@@ -1737,6 +1737,7 @@ int pkg_info_preinstall_check(opkg_conf_t *conf)
// opkg_message(conf, OPKG_DEBUG2, "pkg %s: file=%s\n", pkg->name, installed_file);
file_hash_set_file_owner(conf, installed_file, pkg);
}
+ pkg_free_installed_files(pkg);
}
pkg_vec_free(installed_pkgs);