aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2021-05-23 00:03:01 -0700
committerGuy Harris <gharris@sonic.net>2021-05-23 00:03:01 -0700
commit64f3f08702d09f912c2713ec830c91ead242507f (patch)
treeee0be347ae7b4db8a645205f80e404feff77a2d2
parent7aa828a98639242cd56a13e5c43922445a4cea57 (diff)
epl-profile-parser: plug a memory leak.
g_key_file_get_groups() returns a pointer to g_mallocated data; we need to pass its return value to g_strfreev() when we're done with that data, to free it up.
-rw-r--r--epan/dissectors/packet-epl-profile-parser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/dissectors/packet-epl-profile-parser.c b/epan/dissectors/packet-epl-profile-parser.c
index 1f8e50af6c..06e34858e4 100644
--- a/epan/dissectors/packet-epl-profile-parser.c
+++ b/epan/dissectors/packet-epl-profile-parser.c
@@ -283,6 +283,7 @@ epl_eds_load(struct profile *profile, const char *eds_file)
epl_wmem_iarray_insert(obj->subindices, subobj.info.idx, &subobj.range);
}
}
+ g_strfreev(groups);
/* Unlike with XDDs, subindices might interleave with others, so let's sort them now */
wmem_map_foreach(profile->objects, sort_subindices, NULL);