commit | 1b22b8958cdea300f9a49ef7adb59de57cdc60b0 | [log] [tgz] |
---|---|---|
author | willson-chen <willson-chenwx@gmail.com> | Wed Jul 31 23:23:45 2019 +0800 |
committer | Ralph Giles <giles@thaumas.net> | Wed Jul 31 09:04:06 2019 -0700 |
tree | b62b4e95e4245bc3f31c57dc7d6b48fcbfcc2ee7 | |
parent | d7ac86c97a7f4687f6e8efbd1156a64cc7534acc [diff] |
Fix memory leak in test_framing We call ogg_stream_init() in main() of framing.c, but no ogg_stream_clear() in corresponding. It will cause memory leak. Signed-off-by: Ralph Giles <giles@thaumas.net>
diff --git a/src/framing.c b/src/framing.c index 44da787..baa2eec 100644 --- a/src/framing.c +++ b/src/framing.c
@@ -2099,6 +2099,8 @@ } } } + ogg_stream_clear(&os_en); + ogg_stream_clear(&os_de); return(0); }