avutil/hmac: use av_freep() to avoid leaving stale pointers in memory
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 27 Dec 2014 14:50:01 +0000 (15:50 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 27 Dec 2014 14:50:01 +0000 (15:50 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/hmac.c

index 02bdc18..300436c 100644 (file)
@@ -127,7 +127,7 @@ void av_hmac_free(AVHMAC *c)
 {
     if (!c)
         return;
-    av_free(c->hash);
+    av_freep(&c->hash);
     av_free(c);
 }