Commit 9b868a2f authored by Rémi Duraffort's avatar Rémi Duraffort

Fix memleak in mkv.

parent 897ae9ca
...@@ -5079,7 +5079,9 @@ void matroska_segment_c::ParseAttachments( KaxAttachments *attachments ) ...@@ -5079,7 +5079,9 @@ void matroska_segment_c::ParseAttachments( KaxAttachments *attachments )
if( new_attachment ) if( new_attachment )
{ {
new_attachment->psz_file_name = ToUTF8( UTFstring( file_name ) ); char* tmp = ToUTF8( UTFstring( file_name ) );
new_attachment->psz_file_name = tmp;
free( tmp );
new_attachment->psz_mime_type = psz_mime_type; new_attachment->psz_mime_type = psz_mime_type;
new_attachment->i_size = img_data.GetSize(); new_attachment->i_size = img_data.GetSize();
new_attachment->p_data = malloc( img_data.GetSize() ); new_attachment->p_data = malloc( img_data.GetSize() );
......
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