diff options
author | Guy Harris <gharris@sonic.net> | 2021-05-23 00:03:01 -0700 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2021-05-23 07:27:31 +0000 |
commit | faea31d0a1f2ec364c7e7ef25735650c735541c9 (patch) | |
tree | 6c6d0c344f4530c6f266586ce6b2fe8c0feed0ea | |
parent | 54b89521507cb335f59e3b21d0e4716b83f16530 (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.
(cherry picked from commit 64f3f08702d09f912c2713ec830c91ead242507f)
-rw-r--r-- | epan/dissectors/packet-epl-profile-parser.c | 1 |
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 f9d0d5b982..c04d7664fa 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); |