1
0
mirror of https://gitlab.xiph.org/xiph/ezstream.git synced 2024-09-15 04:08:07 -04:00

Fix memory leak (CID 171996)

This commit is contained in:
Moritz Grimm 2017-09-15 20:21:45 +02:00
parent 8ea0197235
commit fef9b4625e

View File

@ -613,9 +613,10 @@ streamFile(stream_t stream, const char *fileName)
ret = STREAM_DONE;
continue;
}
if (0> stream_set_metadata(stream, prog_mdata, &mdataStr)) {
if (0 > stream_set_metadata(stream, prog_mdata, &mdataStr)) {
retval = 0;
ret = STREAM_DONE;
metadata_free(&prog_mdata);
continue;
}
metadata_free(&prog_mdata);