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); }