From 7928c4ec3fa88c5d996c01d4967b3965f56f967e Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Fri, 9 Oct 2015 19:44:46 +0200 Subject: [PATCH] Closed memory leak with lack of memory during ISO image import. Coverity CID 12571. --- libisofs/fs_image.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libisofs/fs_image.c b/libisofs/fs_image.c index effdd75..c273b54 100644 --- a/libisofs/fs_image.c +++ b/libisofs/fs_image.c @@ -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; }