[FFmpeg-cvslog] murmur3: fix memleak
Michael Niedermayer
git at videolan.org
Wed May 15 12:15:28 CEST 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed May 15 12:10:09 2013 +0200| [e003413fe969185a004e9c0b6c1dceb71ce70ccf] | committer: Michael Niedermayer
murmur3: fix memleak
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e003413fe969185a004e9c0b6c1dceb71ce70ccf
---
libavutil/murmur3.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavutil/murmur3.c b/libavutil/murmur3.c
index cab9a98..701fa6a 100644
--- a/libavutil/murmur3.c
+++ b/libavutil/murmur3.c
@@ -175,6 +175,7 @@ int main(void)
av_murmur3_update(ctx, hashes, 256 * 16);
av_murmur3_final(ctx, hash_result);
av_free(hashes);
+ av_freep(&ctx);
printf("result: 0x%"PRIx64" 0x%"PRIx64"\n", AV_RL64(hash_result), AV_RL64(hash_result + 8));
// official reference value is 32 bit
return AV_RL32(hash_result) != 0x6384ba69;
More information about the ffmpeg-cvslog
mailing list