mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-28 05:50:43 +00:00
crypto: Use av_freep instead of av_free
This fixes a potential double free. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
c1ad93c08c
commit
c8d0d8bc76
@ -97,8 +97,8 @@ static int crypto_open(URLContext *h, const char *uri, int flags)
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
err:
|
err:
|
||||||
av_free(c->key);
|
av_freep(&c->key);
|
||||||
av_free(c->iv);
|
av_freep(&c->iv);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user