Commit 689371fd authored by willson-chen's avatar willson-chen Committed by Ralph Giles

Fix memory leak in test_framing

oy.data memory is alloc by ogg_sync_buffer(), but does not call free()
before main() exit. After fixing it, I test test_framing by valgrind.
And no more memory leak in test_framing and test_bitwise right now.
Signed-off-by: Ralph Giles's avatarRalph Giles <giles@thaumas.net>
parent 42597feb
......@@ -2099,6 +2099,7 @@ int main(void){
}
}
}
ogg_sync_clear(&oy);
ogg_stream_clear(&os_en);
ogg_stream_clear(&os_de);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment