Skip to content

Commit

Permalink
libhb: fix a leak in decssasub
Browse files Browse the repository at this point in the history
  • Loading branch information
galad87 committed Jan 10, 2018
1 parent f419e5a commit d689024
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libhb/decssasub.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,10 @@ ssa_decode_line_to_mkv_ssa( hb_work_object_t * w, hb_buffer_t * in,
// when there is no layer field.
numPartsRead = sscanf( (char *)in_data, "Dialogue:%128[^,],", layerField );
if ( numPartsRead != 1 )
{
free(layerField);
goto fail;
}

styleToTextFields = (char *)find_field( in_data, in_data + in_size, 4 );
if ( styleToTextFields == NULL ) {
Expand Down

0 comments on commit d689024

Please sign in to comment.