Commit dacf0766 authored by Maksym Veremeyenko's avatar Maksym Veremeyenko Committed by Michael Niedermayer

fix memory leak in oggenc

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f65c6f75
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment