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
avcodec/utils: fix memleak on avcodec_open2() failure
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.2-rc1
Michael Niedermayer
11 years ago
parent
866c44d4b0
commit
8b285f03f7
1 changed files
with
3 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-1
libavcodec/utils.c
+ 3
- 1
libavcodec/utils.c
View File
@@ -1477,8 +1477,10 @@ end:
free_and_end:
av_dict_free(&tmp);
av_freep(&avctx->priv_data);
if (avctx->internal)
if (avctx->internal)
{
av_freep(&avctx->internal->pool);
av_frame_free(&avctx->internal->to_free);
}
av_freep(&avctx->internal);
avctx->codec = NULL;
goto end;
Write
Preview
Loading…
Cancel
Save