avutil/hmac: use av_freep() to avoid leaving stale pointers in memory
[ffmpeg.git] / libavutil / hmac.c
index 02bdc182a1dbe4e71e395b019bea8f329782dc90..300436cb072d0c9f38aa7c65becfa144ed9a9d91 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);
 }