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.
This commit is contained in:
Guy Harris 2021-05-23 00:03:01 -07:00
parent 7aa828a986
commit 64f3f08702
1 changed files with 1 additions and 0 deletions

View File

@ -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);