forked from Imagelibrary/rtems
Stop a resource leak
Stops a resource leak in the event that the system cannot malloc
This commit is contained in:
committed by
Sebastian Huber
parent
7cba8ae676
commit
df533f10c0
@@ -281,6 +281,7 @@ Untar_FromFile(
|
||||
|
||||
bufr = (char *)malloc(512);
|
||||
if (bufr == NULL) {
|
||||
close(fd);
|
||||
return(UNTAR_FAIL);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user