From 4ac09c73f6e28e104f3c151f88cad4a8928e04a1 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Sat, 25 Nov 2017 12:44:11 +0100 Subject: [PATCH] gstinfo: Don't leak array of strings The array provided by backtrace_symbols needs to be freed. --- gst/gstinfo.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.7.4