mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
fix memory leak in oggenc
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
f65c6f751f
commit
dacf076614
@ -519,6 +519,8 @@ static int ogg_write_trailer(AVFormatContext *s)
|
||||
av_free(oggstream->header[0]);
|
||||
av_free(oggstream->header[1]);
|
||||
}
|
||||
else
|
||||
av_free(oggstream->header[1]);
|
||||
av_freep(&st->priv_data);
|
||||
}
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user