From bac8c00b855ae5e0503ba91c64b33cf85e91b503 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Wed, 3 Apr 2019 14:13:49 -0400 Subject: [PATCH] shout2: Fix leak on error in start --- ext/shout2/gstshout2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/shout2/gstshout2.c b/ext/shout2/gstshout2.c index 3d3f652..9e2d60f 100644 --- a/ext/shout2/gstshout2.c +++ b/ext/shout2/gstshout2.c @@ -522,6 +522,8 @@ set_failed: { GST_ELEMENT_ERROR (sink, LIBRARY, SETTINGS, (NULL), ("Error setting %s: %s", cur_prop, shout_get_error (sink->conn))); + shout_free (sink->conn); + sink->conn = NULL; return FALSE; } } -- 2.7.4