From: Glenn L McGrath Date: Sat, 20 Jan 2001 06:23:54 +0000 (-0000) Subject: Close files before exit X-Git-Tag: 0_49~59 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f914a8af2be457ce735e72a71ebe8c9a19cf4b23;p=oweals%2Fbusybox.git Close files before exit --- diff --git a/archival/dpkg_deb.c b/archival/dpkg_deb.c index 337e6e10d..35904950f 100644 --- a/archival/dpkg_deb.c +++ b/archival/dpkg_deb.c @@ -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); } diff --git a/dpkg_deb.c b/dpkg_deb.c index 337e6e10d..35904950f 100644 --- a/dpkg_deb.c +++ b/dpkg_deb.c @@ -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); }