aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-xml.c
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2008-02-26 19:52:21 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2008-02-26 19:52:21 +0000
commit1d6df91a9d5d9a753f00c80d83f5e425c5f05154 (patch)
treeae6071e0197264a66bb0c432771e757950988a74 /epan/dissectors/packet-xml.c
parent2389b572327a1d14093edc0cf445a961e9595898 (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=24479
Diffstat (limited to 'epan/dissectors/packet-xml.c')
-rw-r--r--epan/dissectors/packet-xml.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/dissectors/packet-xml.c b/epan/dissectors/packet-xml.c
index 27c3c5f02f..706cf7c493 100644
--- a/epan/dissectors/packet-xml.c
+++ b/epan/dissectors/packet-xml.c
@@ -1191,6 +1191,8 @@ static void init_xml_names(void) {
}
}
+ g_free(dirname);
+
for(i=0;i<array_length(default_media_types);i++) {
if( ! g_hash_table_lookup(media_types,default_media_types[i]) ) {
g_hash_table_insert(media_types,(gpointer)default_media_types[i],&xml_ns);