]> Pileus Git - ~andy/rsl/blobdiff - gzip.c
RSL v1.44
[~andy/rsl] / gzip.c
diff --git a/gzip.c b/gzip.c
index 09d019846d504e71aadfacffa795f44d28242cea..8308af4752e8489bce42c163f0a7bc64abaf1688 100644 (file)
--- a/gzip.c
+++ b/gzip.c
@@ -83,6 +83,8 @@ FILE *uncompress_pipe (FILE *fp)
   if (fpipe == NULL) perror("uncompress_pipe");
   close(0);
   dup(save_fd);
+  close(save_fd);
+  fclose(fp);
   return fpipe;
 }