From 05e74ac2f3f3390952893b983939f026f7ab1cec Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 27 Dec 2014 15:50:01 +0100 Subject: [PATCH] avutil/hmac: use av_freep() to avoid leaving stale pointers in memory Signed-off-by: Michael Niedermayer --- libavutil/hmac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }