1
0
mirror of https://gitlab.xiph.org/xiph/ezstream.git synced 2024-12-04 14:46:31 -05: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; ret = STREAM_DONE;
continue; continue;
} }
if (0> stream_set_metadata(stream, prog_mdata, &mdataStr)) { if (0 > stream_set_metadata(stream, prog_mdata, &mdataStr)) {
retval = 0; retval = 0;
ret = STREAM_DONE; ret = STREAM_DONE;
metadata_free(&prog_mdata);
continue; continue;
} }
metadata_free(&prog_mdata); metadata_free(&prog_mdata);