From e599a575dc7e8fec175e97f041dd358366f6f7ac Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Mon, 21 Aug 2017 19:43:19 +0200 Subject: [PATCH] Closed a memory leak about RRIP CL following --- libisofs/fs_image.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libisofs/fs_image.c b/libisofs/fs_image.c index 2012ff8..6a511ea 100644 --- a/libisofs/fs_image.c +++ b/libisofs/fs_image.c @@ -2006,6 +2006,8 @@ if (name != NULL && !namecont) { /* but the real name is the name of the placeholder */ ifsdata = (ImageFileSourceData*) (*src)->data; + if (ifsdata->name != NULL) + free(ifsdata->name); ifsdata->name = name; {ret = ISO_SUCCESS; goto ex;}