1
0
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:
Maksym Veremeyenko 2011-09-30 14:42:34 +03:00 committed by Michael Niedermayer
parent f65c6f751f
commit dacf076614

View File

@ -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;