mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-07 09:41:32 +08:00
avutil/hmac: use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user