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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/101/head
Michael Niedermayer 10 years ago
parent 6d639ecf44
commit 05e74ac2f3
  1. 2
      libavutil/hmac.c

@ -127,7 +127,7 @@ void av_hmac_free(AVHMAC *c)
{ {
if (!c) if (!c)
return; return;
av_free(c->hash); av_freep(&c->hash);
av_free(c); av_free(c);
} }

Loading…
Cancel
Save