From 629b427a132e69c8816aff01ea1d995e0068bf86 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Mon, 21 Feb 2022 13:24:07 +1100 Subject: [PATCH] ulpfecenc: fix unmatched free() call One must always match a g_slice_new with a g_slice_free and a g_new with a g_free. This was not the case for the internal ctx struct. Part-of: --- subprojects/gst-plugins-good/gst/rtp/gstrtpulpfecenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-good/gst/rtp/gstrtpulpfecenc.c b/subprojects/gst-plugins-good/gst/rtp/gstrtpulpfecenc.c index 845351a..5928ba9 100644 --- a/subprojects/gst-plugins-good/gst/rtp/gstrtpulpfecenc.c +++ b/subprojects/gst-plugins-good/gst/rtp/gstrtpulpfecenc.c @@ -508,7 +508,7 @@ gst_rtp_ulpfec_enc_stream_ctx_free (GstRtpUlpFecEncStreamCtx * ctx) g_assert (0 == ctx->info_arr->len); g_array_free (ctx->info_arr, TRUE); g_array_free (ctx->scratch_buf, TRUE); - g_slice_free1 (sizeof (GstRtpUlpFecEncStreamCtx), ctx); + g_free (ctx); } static GstFlowReturn -- 2.7.4