summaryrefslogtreecommitdiff
path: root/epan/uat_load.l
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2008-02-26 19:03:01 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2008-02-26 19:03:01 +0000
commit1c319c4e2c0f299c9ff9e54726b28221c84cb228 (patch)
tree3b519f8afbe57bd69120f2421bf40a44a26f0354 /epan/uat_load.l
parent9fdc3e961d7b6c0731ad218095961763428a1baf (diff)
downloadwireshark-1c319c4e2c0f299c9ff9e54726b28221c84cb228.tar.gz
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=24477
Diffstat (limited to 'epan/uat_load.l')
-rw-r--r--epan/uat_load.l2
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/uat_load.l b/epan/uat_load.l
index 42593998d9..ec93d11100 100644
--- a/epan/uat_load.l
+++ b/epan/uat_load.l
@@ -289,6 +289,7 @@ gboolean uat_load(uat_t* uat_in, char** err) {
if (!(yyin = eth_fopen(fname,"r"))) {
*err = strerror(errno);
+ g_free(fname);
return FALSE;
}
@@ -299,6 +300,7 @@ gboolean uat_load(uat_t* uat_in, char** err) {
BEGIN START_OF_LINE;
DUMP(fname);
+ g_free(fname); /* we're done with the file name now */
yylex();
yyrestart(NULL);