Close files before exit
authorGlenn L McGrath <bug1@ihug.co.nz>
Sat, 20 Jan 2001 06:23:54 +0000 (06:23 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Sat, 20 Jan 2001 06:23:54 +0000 (06:23 -0000)
archival/dpkg_deb.c
dpkg_deb.c

index 337e6e10dc786b9e8101d856eb792c676d04d75a..35904950fd891909fd1c572862eac0c10508ad8b 100644 (file)
@@ -155,5 +155,6 @@ extern int dpkg_deb_main(int argc, char **argv)
                }
        }
        status = readTarFile(srcFd, extract_flag, list_flag, extract_to_stdout, verbose_flag, NULL, extract_list);
+       close (srcFd);
        return(EXIT_SUCCESS);
 }
index 337e6e10dc786b9e8101d856eb792c676d04d75a..35904950fd891909fd1c572862eac0c10508ad8b 100644 (file)
@@ -155,5 +155,6 @@ extern int dpkg_deb_main(int argc, char **argv)
                }
        }
        status = readTarFile(srcFd, extract_flag, list_flag, extract_to_stdout, verbose_flag, NULL, extract_list);
+       close (srcFd);
        return(EXIT_SUCCESS);
 }