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 <giles@thaumas.net>
This commit is contained in:
willson-chen 2019-08-13 00:25:00 +08:00 committed by Ralph Giles
parent 42597febc8
commit 689371fdc2

View File

@ -2099,6 +2099,7 @@ int main(void){
}
}
}
ogg_sync_clear(&oy);
ogg_stream_clear(&os_en);
ogg_stream_clear(&os_de);