Stop a resource leak

Stops a resource leak in the event that the system cannot malloc
This commit is contained in:
Cynthia Rempel
2013-08-25 16:49:21 -07:00
committed by Sebastian Huber
parent 7cba8ae676
commit df533f10c0

View File

@@ -281,6 +281,7 @@ Untar_FromFile(
bufr = (char *)malloc(512);
if (bufr == NULL) {
close(fd);
return(UNTAR_FAIL);
}