Bug 794023 - Bad/Double free bugs found by scan-build.

In case of error in gimp_prop_eval_parse_reference(), we were obviously
freeing the string which had just been allocated by g_strdup(), not the
pointer to this string.
Thanks to Massimo for raising this issue.
This commit is contained in:
Jehan 2018-03-03 16:41:43 +01:00
parent 40df83ad71
commit c9d9b5535b
1 changed files with 1 additions and 1 deletions

View File

@ -882,7 +882,7 @@ gimp_prop_eval_parse_reference (GObject *config,
if (*error)
{
g_free (ref_key);
g_free (*ref_key);
return FALSE;
}