mirror of
https://gitlab.xiph.org/xiph/ezstream.git
synced 2024-11-03 04:17:18 -05:00
Fix mdata_t leak on error
Found by Coverity
This commit is contained in:
parent
db8a5e349c
commit
5132687076
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user