From d93be961e161a50139a2b31901195c415a2962e4 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sun, 13 Apr 2014 11:21:33 +0200 Subject: [PATCH] Closed a memory leak with disposal of iso_image_report_system_area() result --- libisofs/fs_image.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libisofs/fs_image.c b/libisofs/fs_image.c index 220c32c..7d92fd2 100644 --- a/libisofs/fs_image.c +++ b/libisofs/fs_image.c @@ -5062,6 +5062,7 @@ int iso_image_report_system_area(IsoImage *image, target->lines = calloc(target->line_count + 1, sizeof(char *)); if (target->buf == NULL || target->lines == NULL) {ret = ISO_OUT_OF_MEM; goto ex;} + target->lines[0] = target->buf; /* even if no lines get reported */ target->byte_count = 0; target->line_count = 0; ret = iso_impsysa_report(image, target, 0);