Skip to content

Commit

Permalink
ebmlmaster: fix leak when reading the next element in live mode
Browse files Browse the repository at this point in the history
We revert the position to the beginning of the element and it will
not be used afterwards.
  • Loading branch information
robUx4 committed Dec 31, 2024
1 parent 59a348c commit d7731d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libebml2/ebmlmaster.c
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ static err_t ReadData(ebml_master *Element, struct stream *Input, const ebml_par
{
assert(SubElement!=NULL);
Stream_Seek(Input,SubElement->ElementPosition,SEEK_SET);
NodeDelete((node*)SubElement); // forget about it, it will be read again later
}
return ERR_NONE;
}
Expand Down

0 comments on commit d7731d4

Please sign in to comment.