gstinfo: Don't leak array of strings

The array provided by backtrace_symbols needs to be freed.
This commit is contained in:
Edward Hervey 2017-11-25 12:44:11 +01:00 committed by Edward Hervey
parent 5429dcdf2e
commit 4ac09c73f6

View file

@ -2751,6 +2751,8 @@ generate_backtrace_trace (void)
for (j = 0; j < nptrs; j++) for (j = 0; j < nptrs; j++)
g_string_append_printf (trace, "%s\n", strings[j]); g_string_append_printf (trace, "%s\n", strings[j]);
g_free (strings);
return g_string_free (trace, FALSE); return g_string_free (trace, FALSE);
} }
#else #else