1
0
Fork 0

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
1 changed files with 3 additions and 0 deletions

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