mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-02 22:46:35 +00:00
gstinfo: Don't leak array of strings
The array provided by backtrace_symbols needs to be freed.
This commit is contained in:
parent
5429dcdf2e
commit
4ac09c73f6
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue