Close files before exit
diff --git a/archival/dpkg_deb.c b/archival/dpkg_deb.c
index 337e6e1..3590495 100644
--- a/archival/dpkg_deb.c
+++ b/archival/dpkg_deb.c
@@ -155,5 +155,6 @@
}
}
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 337e6e1..3590495 100644
--- a/dpkg_deb.c
+++ b/dpkg_deb.c
@@ -155,5 +155,6 @@
}
}
status = readTarFile(srcFd, extract_flag, list_flag, extract_to_stdout, verbose_flag, NULL, extract_list);
+ close (srcFd);
return(EXIT_SUCCESS);
}