aboutsummaryrefslogtreecommitdiffstats
path: root/color_filters.c
diff options
context:
space:
mode:
Diffstat (limited to 'color_filters.c')
-rw-r--r--color_filters.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/color_filters.c b/color_filters.c
index 652dcb19a6..4d45c08ea5 100644
--- a/color_filters.c
+++ b/color_filters.c
@@ -759,8 +759,10 @@ color_filters_write(GSList *cfl)
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
"Could not open\n%s\nfor writing: %s.",
path, strerror(errno));
+ g_free(path);
return FALSE;
}
+ g_free(path);
write_filters_file(cfl, f, FALSE);
fclose(f);
return TRUE;