1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-06-23 06:25:24 +00: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);
}
free(out_buffer);
if (!ret) {
free(out_buffer);
vorbis_comment_clear(vc);
vorbis_comment_init(vc);
}