aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/murmur3.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-05-15 12:10:09 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-05-15 12:10:09 +0200
commite003413fe969185a004e9c0b6c1dceb71ce70ccf (patch)
treef8286271a838e9203a1fde92baa04e565c0e0565 /libavutil/murmur3.c
parent3ac3edf63baa2f550a004b2039e6fbd227801351 (diff)
downloadffmpeg-e003413fe969185a004e9c0b6c1dceb71ce70ccf.tar.gz
murmur3: fix memleak
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/murmur3.c')
-rw-r--r--libavutil/murmur3.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/murmur3.c b/libavutil/murmur3.c
index cab9a98f93..701fa6a0ff 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;