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

Fix: Fixed memory leak in metadata_xiph_read_vorbis_comments()

This commit is contained in:
Philipp Schafft 2022-03-16 11:26:27 +00:00
parent 1eda7cc45a
commit 584d44fd63

View File

@ -105,8 +105,9 @@ bool metadata_xiph_read_vorbis_comments(vorbis_comment *vc, const void *buff
vorbis_comment_add(vc, out_buffer); vorbis_comment_add(vc, out_buffer);
} }
if (!ret) {
free(out_buffer); free(out_buffer);
if (!ret) {
vorbis_comment_clear(vc); vorbis_comment_clear(vc);
vorbis_comment_init(vc); vorbis_comment_init(vc);
} }