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:
parent
42597febc8
commit
689371fdc2
@ -2099,6 +2099,7 @@ int main(void){
|
||||
}
|
||||
}
|
||||
}
|
||||
ogg_sync_clear(&oy);
|
||||
ogg_stream_clear(&os_en);
|
||||
ogg_stream_clear(&os_de);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user