diff options
author | morriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-02-26 19:13:43 +0000 |
---|---|---|
committer | morriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-02-26 19:13:43 +0000 |
commit | 9c57cec010977543958a32c00113af52546bc727 (patch) | |
tree | a7928b496c8ef177b2d0cf6f9b3ab9ddaeaa8216 /color_filters.c | |
parent | eb78d1391b5b018ad45714189ab79ba443de9dac (diff) |
get_datafile_path() and get_persconffile_path() return malloc'd memory,
free it when we're done with the file name.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24478 f5534014-38df-0310-8fa8-9805f1628bb7
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; |