aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-27 15:50:01 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-27 15:50:01 +0100
commit05e74ac2f3f3390952893b983939f026f7ab1cec (patch)
treef7dba9f77fae642e112bf15d611e142839e55500 /libavutil
parent6d639ecf44722019566bd84d43e4f30322e64b31 (diff)
downloadffmpeg-05e74ac2f3f3390952893b983939f026f7ab1cec.tar.gz
avutil/hmac: use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/hmac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/hmac.c b/libavutil/hmac.c
index 02bdc182a1..300436cb07 100644
--- a/libavutil/hmac.c
+++ b/libavutil/hmac.c
@@ -127,7 +127,7 @@ void av_hmac_free(AVHMAC *c)
{
if (!c)
return;
- av_free(c->hash);
+ av_freep(&c->hash);
av_free(c);
}