fix memory leak in oggenc
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
f65c6f751f
commit
dacf076614
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue