This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
Revert "crypto: fix potential double free"
This reverts commit
7d89f7cbf3
. Revert at authors request, and its buggy missing &
tags/n0.8
Michael Niedermayer
14 years ago
parent
1fe3bf3e4b
commit
c1ad93c08c
1 changed files
with
4 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-2
libavformat/crypto.c
+ 4
- 2
libavformat/crypto.c
View File
@@ -97,8 +97,8 @@ static int crypto_open(URLContext *h, const char *uri, int flags)
return 0;
err:
av_free
p
(c->key);
av_free
p
(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;
}
Write
Preview
Loading…
Cancel
Save