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

View File

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