Commit df152a77 authored by Henrik Gramner's avatar Henrik Gramner Committed by Anton Mitrofanov

matroska: Fix memory leak

parent 6d524997
......@@ -157,11 +157,11 @@ static int write_headers( hnd_t handle, x264_nal_t *p_nal )
avcC, avcC_len, p_mkv->frame_duration, 50000,
p_mkv->width, p_mkv->height,
p_mkv->d_width, p_mkv->d_height, p_mkv->display_size_units, p_mkv->stereo_mode );
free( avcC );
if( ret < 0 )
return ret;
free( avcC );
// SEI
if( !p_mkv->b_writing_frame )
......
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