aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/wimaxasncp/packet-wimaxasncp.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/wimaxasncp/packet-wimaxasncp.c')
-rw-r--r--plugins/wimaxasncp/packet-wimaxasncp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/wimaxasncp/packet-wimaxasncp.c b/plugins/wimaxasncp/packet-wimaxasncp.c
index 668ab5a366..e090ade775 100644
--- a/plugins/wimaxasncp/packet-wimaxasncp.c
+++ b/plugins/wimaxasncp/packet-wimaxasncp.c
@@ -3287,13 +3287,15 @@ register_wimaxasncp_fields(const char* unused _U_)
debug_parser = getenv("WIRESHARK_DEBUG_WIMAXASNCP_DICT_PARSER") != NULL;
dump_dict = getenv("WIRESHARK_DUMP_WIMAXASNCP_DICT") != NULL;
- dir = ep_strdup_printf(
+ dir = g_strdup_printf(
"%s" G_DIR_SEPARATOR_S "wimaxasncp",
get_datafile_dir());
wimaxasncp_dict =
wimaxasncp_dict_scan(dir, "dictionary.xml", debug_parser, &dict_error);
+ g_free(dir);
+
if (dict_error)
{
report_failure("wimaxasncp - %s", dict_error);