Skip to content

Commit

Permalink
Fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoNex committed Oct 26, 2023
1 parent 7da84ed commit fbfba13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/obj/list.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
void dispose_list_obj(struct object o) {
// Free everything if it's not a slice (marked parent bit is set to NULL).
if (o.data.list->m_parent == NULL) {
free(o.marked);
free(o.data.list->list);
}
free(o.data.list);
free(o.marked);
}

// TODO: optimise this.
Expand Down

0 comments on commit fbfba13

Please sign in to comment.