From cf9c8cf9ad2ec46bb4f3d42ac5ec90f6ed0146f6 Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Fri, 28 Jun 2019 08:03:51 +0000 Subject: [PATCH] Fix: Fixed leak in codec Speex codec probing code. Thanks to Xogium for finding and debugging this! Fixes: #2377 --- src/format_speex.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/format_speex.c b/src/format_speex.c index 02bd85a2..ee204fce 100644 --- a/src/format_speex.c +++ b/src/format_speex.c @@ -82,6 +82,9 @@ ogg_codec_t *initial_speex_page (format_plugin_t *plugin, ogg_page *page) * again for something else. */ if (packet.bytes < 80) { + ICECAST_LOG_DDEBUG("Header too small for Speex, so skipping Speex test."); + ogg_stream_clear (&codec->os); + free (codec); return NULL; }