0c3be747cf97882a89357259d1939e9251213ac6
[openwrt/svn-archive/archive.git] / busybox / patches / 525-clean_temp.patch
1 diff -urN busybox-1.8.2.old/archival/libipkg/pkg_extract.c busybox-1.8.2.dev/archival/libipkg/pkg_extract.c
2 --- busybox-1.8.2.old/archival/libipkg/pkg_extract.c 2008-01-23 22:18:44.000000000 +0100
3 +++ busybox-1.8.2.dev/archival/libipkg/pkg_extract.c 2008-01-23 22:20:31.000000000 +0100
4 @@ -85,6 +85,7 @@
5 free(archive->buffer);
6 free(archive->accept);
7 free(archive);
8 + unlink(name);
9 free(name);
10
11 return 0;
12 @@ -114,6 +115,7 @@
13 close(archive->src_fd);
14 free(archive);
15 free(path);
16 + unlink(name);
17 free(name);
18
19 return 0;
20 @@ -138,6 +140,7 @@
21 close(archive->src_fd);
22 free(archive);
23 free(path);
24 + unlink(name);
25 free(name);
26
27 return 0;
28 @@ -218,6 +221,7 @@
29 fputs(archive->buffer, file);
30 free(archive->buffer);
31 free(archive);
32 + unlink(name);
33 free(name);
34
35 return 0;