ixp4xx/fsg3: Added LEDs support, and refreshed patches for 2.6.23.12
[openwrt/svn-archive/archive.git] / package / busybox / patches / 522-memleak.patch
1 Index: busybox-1.8.2/archival/libipkg/ipkg_install.c
2 ===================================================================
3 --- busybox-1.8.2.orig/archival/libipkg/ipkg_install.c 2007-12-30 00:02:53.577161007 +0100
4 +++ busybox-1.8.2/archival/libipkg/ipkg_install.c 2007-12-30 00:03:14.042327251 +0100
5 @@ -500,6 +500,7 @@
6 }
7 }
8 }
9 + pkg_free_installed_files(new_pkg);
10 return 0;
11 }
12
13 Index: busybox-1.8.2/archival/libipkg/pkg.c
14 ===================================================================
15 --- busybox-1.8.2.orig/archival/libipkg/pkg.c 2007-12-30 00:27:32.001919565 +0100
16 +++ busybox-1.8.2/archival/libipkg/pkg.c 2007-12-30 00:27:34.426057709 +0100
17 @@ -1668,6 +1668,7 @@
18 // ipkg_message(conf, IPKG_DEBUG2, "pkg %s: file=%s\n", pkg->name, installed_file);
19 file_hash_set_file_owner(conf, installed_file, pkg);
20 }
21 + pkg_free_installed_files(pkg);
22 }
23 pkg_vec_free(installed_pkgs);
24