1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-06-16 06:15:24 +00:00

Fix: Fixed leak in codec Speex codec probing code.

Thanks to Xogium for finding and debugging this!

Fixes: #2377
This commit is contained in:
Philipp Schafft 2019-06-28 08:03:51 +00:00
parent 1b94dea420
commit cf9c8cf9ad

View File

@ -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;
}