ab639c59bf27e0d01912cbf6a3cc2f9b88784065
[oweals/openwrt.git] / package / busybox / patches / 522-memleak.patch
1 Index: busybox-1.8.2/archival/libipkg/pkg.c
2 ===================================================================
3 --- busybox-1.8.2.orig/archival/libipkg/pkg.c   2007-12-30 00:27:32.001919565 +0100
4 +++ busybox-1.8.2/archival/libipkg/pkg.c        2007-12-30 00:27:34.426057709 +0100
5 @@ -1668,6 +1668,7 @@
6                // ipkg_message(conf, IPKG_DEBUG2, "pkg %s: file=%s\n", pkg->name, installed_file);
7                file_hash_set_file_owner(conf, installed_file, pkg);
8           }
9 +         pkg_free_installed_files(pkg);
10       }
11       pkg_vec_free(installed_pkgs);
12