Closed a memory leak about RRIP CL following

This commit is contained in:
Thomas Schmitt 2017-08-21 19:43:19 +02:00
parent 78b0a7b111
commit e599a575dc

View File

@ -2006,6 +2006,8 @@ if (name != NULL && !namecont) {
/* but the real name is the name of the placeholder */ /* but the real name is the name of the placeholder */
ifsdata = (ImageFileSourceData*) (*src)->data; ifsdata = (ImageFileSourceData*) (*src)->data;
if (ifsdata->name != NULL)
free(ifsdata->name);
ifsdata->name = name; ifsdata->name = name;
{ret = ISO_SUCCESS; goto ex;} {ret = ISO_SUCCESS; goto ex;}