summaryrefslogtreecommitdiffstats
path: root/package/busybox/patches/525-clean_temp.patch
blob: d9318a9e9a7e4dcd547a3c8ecf9a6fdc715a0fb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--- a/archival/libipkg/pkg_extract.c
+++ b/archival/libipkg/pkg_extract.c
@@ -85,6 +85,7 @@
 	free(archive->buffer);
 	free(archive->accept);
 	free(archive);
+	unlink(name);
 	free(name);
 
 	return 0;
@@ -114,6 +115,7 @@
 	close(archive->src_fd);
 	free(archive);
 	free(path);
+	unlink(name);
 	free(name);
 
 	return 0;
@@ -138,6 +140,7 @@
 	close(archive->src_fd);
 	free(archive);
 	free(path);
+	unlink(name);
 	free(name);
 
 	return 0;
@@ -218,6 +221,7 @@
 	fputs(archive->buffer, file);
 	free(archive->buffer);
 	free(archive);
+	unlink(name);
 	free(name);
 	
 	return 0;