mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
fix memleak, based upon a patch by Wolfram Gloger
Originally committed as revision 4947 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
8cb90572a2
commit
8720de5b76
@ -512,6 +512,7 @@ int main(int argc, char **argv)
|
||||
|
||||
/* free the streams */
|
||||
for(i = 0; i < oc->nb_streams; i++) {
|
||||
av_freep(&oc->streams[i]->codec);
|
||||
av_freep(&oc->streams[i]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user