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:
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