1
0
mirror of https://gitlab.xiph.org/xiph/ezstream.git synced 2024-12-04 14:46:31 -05:00

Fix mdata_t leak on error

Found by Coverity
This commit is contained in:
Moritz Grimm 2020-02-22 23:22:06 +01:00
parent db8a5e349c
commit 5132687076

View File

@ -285,8 +285,10 @@ openResource(stream_t stream, const char *filename, int *popenFlag,
pCommandString = _build_reencode_cmd(extension, filename,
cfg_stream, md);
if (NULL == pCommandString)
if (NULL == pCommandString) {
mdata_destroy(&md);
return (NULL);
}
if (md_p != NULL)
*md_p = md;
else