Commit cf9c8cf9 authored by Philipp Schafft's avatar Philipp Schafft 🦁

Fix: Fixed leak in codec Speex codec probing code.

Thanks to Xogium for finding and debugging this!

Fixes: #2377
parent 1b94dea4
Pipeline #531 passed with stage
in 1 minute and 1 second
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment