Browse Source

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.6
Michael Niedermayer 10 years ago
parent
commit
05e74ac2f3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavutil/hmac.c

+ 1
- 1
libavutil/hmac.c View 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);
}



Loading…
Cancel
Save