From: Edward Hervey Date: Sat, 25 Nov 2017 11:44:11 +0000 (+0100) Subject: gstinfo: Don't leak array of strings X-Git-Tag: 1.16.2~591 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4ac09c73f6e28e104f3c151f88cad4a8928e04a1;p=platform%2Fupstream%2Fgstreamer.git gstinfo: Don't leak array of strings The array provided by backtrace_symbols needs to be freed. --- diff --git a/gst/gstinfo.c b/gst/gstinfo.c index fc683f3..49694e6 100644 --- a/gst/gstinfo.c +++ b/gst/gstinfo.c @@ -2751,6 +2751,8 @@ generate_backtrace_trace (void) for (j = 0; j < nptrs; j++) g_string_append_printf (trace, "%s\n", strings[j]); + g_free (strings); + return g_string_free (trace, FALSE); } #else