summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorwillson-chen <willson.chenwx@gmail.com>2019-08-13 00:25:00 +0800
committerRalph Giles <giles@thaumas.net>2019-08-12 11:57:10 -0700
commit689371fdc2ebb3bc068464608916db6e5a104228 (patch)
tree1878ea272564de46d82fcf8b4db8104ab8ca0d94 /src
parent42597febc81afd9cff783e1a06b0f3f4f98eebe2 (diff)
downloadogg-git-689371fdc2ebb3bc068464608916db6e5a104228.tar.gz
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>
Diffstat (limited to 'src')
-rw-r--r--src/framing.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/framing.c b/src/framing.c
index baa2eec..8360119 100644
--- a/src/framing.c
+++ b/src/framing.c
@@ -2099,6 +2099,7 @@ int main(void){
}
}
}
+ ogg_sync_clear(&oy);
ogg_stream_clear(&os_en);
ogg_stream_clear(&os_de);