summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorwillson-chen <willson-chenwx@gmail.com>2019-07-31 23:23:45 +0800
committerRalph Giles <giles@thaumas.net>2019-07-31 09:04:06 -0700
commit1b22b8958cdea300f9a49ef7adb59de57cdc60b0 (patch)
treeb62b4e95e4245bc3f31c57dc7d6b48fcbfcc2ee7 /src
parentd7ac86c97a7f4687f6e8efbd1156a64cc7534acc (diff)
downloadogg-git-1b22b8958cdea300f9a49ef7adb59de57cdc60b0.tar.gz
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>
Diffstat (limited to 'src')
-rw-r--r--src/framing.c2
1 files changed, 2 insertions, 0 deletions
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 @@ int main(void){
}
}
}
+ ogg_stream_clear(&os_en);
+ ogg_stream_clear(&os_de);
return(0);
}