Commit 05e74ac2 authored by Michael Niedermayer's avatar Michael Niedermayer

avutil/hmac: use av_freep() to avoid leaving stale pointers in memory

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 6d639ecf
......@@ -127,7 +127,7 @@ void av_hmac_free(AVHMAC *c)
{
if (!c)
return;
av_free(c->hash);
av_freep(&c->hash);
av_free(c);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment