diff options
author | Jeff Morriss <jeff.morriss@ulticom.com> | 2008-02-26 19:13:43 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss@ulticom.com> | 2008-02-26 19:13:43 +0000 |
commit | 2389b572327a1d14093edc0cf445a961e9595898 (patch) | |
tree | a7928b496c8ef177b2d0cf6f9b3ab9ddaeaa8216 /color_filters.c | |
parent | 1c319c4e2c0f299c9ff9e54726b28221c84cb228 (diff) |
get_datafile_path() and get_persconffile_path() return malloc'd memory,
free it when we're done with the file name.
svn path=/trunk/; revision=24478
Diffstat (limited to 'color_filters.c')
-rw-r--r-- | color_filters.c | 2 |
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; |