Closed memory leak with lack of memory during ISO image import.

Coverity CID 12571.
This commit is contained in:
Thomas Schmitt 2015-10-09 19:44:46 +02:00
parent 379e223a5c
commit 7928c4ec3f
1 changed files with 1 additions and 0 deletions

View File

@ -5920,6 +5920,7 @@ int iso_image_import(IsoImage *image, IsoDataSource *src,
if (bootcat->size > 0) {
bootcat->content = calloc(1, bootcat->size);
if (bootcat->content == NULL) {
free(node);
ret = ISO_OUT_OF_MEM;
goto import_revert;
}