You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
Revert "crypto: fix potential double free"
This reverts commit 7d89f7cbf3
.
Revert at authors request, and its buggy missing &
This commit is contained in:
@@ -97,8 +97,8 @@ static int crypto_open(URLContext *h, const char *uri, int flags)
|
||||
|
||||
return 0;
|
||||
err:
|
||||
av_freep(c->key);
|
||||
av_freep(c->iv);
|
||||
av_free(c->key);
|
||||
av_free(c->iv);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -157,6 +157,8 @@ static int crypto_close(URLContext *h)
|
||||
if (c->hd)
|
||||
ffurl_close(c->hd);
|
||||
av_freep(&c->aes);
|
||||
av_freep(&c->key);
|
||||
av_freep(&c->iv);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user