forked from osmocom/wireshark
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 64f3f08702
)
This commit is contained in:
parent
54b8952150
commit
faea31d0a1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue