Skip to content
Snippets Groups Projects
Commit 1f27b419 authored by Anton's avatar Anton
Browse files

[TMP] hexagon: idef fix mem leak

parent a68d3857
No related branches found
No related tags found
No related merge requests found
......@@ -2122,6 +2122,9 @@ void free_instruction(Context *c)
for (unsigned i = 0; i < c->inst.strings->len; i++) {
g_string_free(g_array_index(c->inst.strings, GString*, i), TRUE);
}
if (c->inst.init_list != NULL) {
g_array_free(c->inst.init_list, TRUE);
}
g_array_free(c->inst.strings, TRUE);
/* Free INAME token value */
g_string_free(c->inst.name, TRUE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment