2008-08-20 14:00:34 +00:00
|
|
|
--- a/archival/libipkg/pkg_extract.c
|
|
|
|
+++ b/archival/libipkg/pkg_extract.c
|
2008-01-25 11:09:10 +00:00
|
|
|
@@ -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;
|