dfilter: Fix memory leak in sttype_slice_set1()
The GSList pointer is a temporary data structure that must be freed at the end.
This commit is contained in:
parent
3aeaea511a
commit
a9fc552161
|
@ -130,7 +130,9 @@ sttype_slice_set(stnode_t *node, stnode_t *entity, GSList* drange_list)
|
|||
void
|
||||
sttype_slice_set1(stnode_t *node, stnode_t *entity, drange_node *rn)
|
||||
{
|
||||
sttype_slice_set(node, entity, g_slist_append(NULL, rn));
|
||||
GSList *drange_list = g_slist_append(NULL, rn);
|
||||
sttype_slice_set(node, entity, drange_list);
|
||||
g_slist_free(drange_list);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in New Issue