commit | ffb50496c70cd15e456bc1a37a4b3d62fc0db6c5 | [log] [tgz] |
---|---|---|
author | Patrick Jacques <kernelzilla@kinetic-computing.com> | Sat Nov 06 16:15:17 2010 +0800 |
committer | Kenny Root <kenny@the-b.org> | Sun Nov 07 12:49:10 2010 +0800 |
tree | c79f56847b7d19441e2b15365c6d140f6d1e19c3 | |
parent | 3c276f4d58833251300b772c184b13c8c6f6a82c [diff] |
libFLAC: fix leak in metadata_iterators.c node isn't cleared if metadata reading fails in read_metadata_block_header_cb.
diff --git a/libFLAC/metadata_iterators.c b/libFLAC/metadata_iterators.c index 15362f7..8b9dbec 100644 --- a/libFLAC/metadata_iterators.c +++ b/libFLAC/metadata_iterators.c
@@ -1217,6 +1217,7 @@ } if(!read_metadata_block_header_cb_(handle, read_cb, &is_last, &type, &length)) { + node_delete_(node); chain->status = FLAC__METADATA_CHAIN_STATUS_READ_ERROR; return false; }