Handle malloc failure in mode_create gracefully without leaking memory.
This commit is contained in:
parent
1716999bbe
commit
dc67fa9a4c
6 changed files with 122 additions and 21 deletions
|
@ -179,8 +179,8 @@ void celt_encoder_destroy(CELTEncoder *st)
|
|||
|
||||
if (st->marker == ENCODERFREED)
|
||||
{
|
||||
return;
|
||||
celt_warning("Freeing an encoder which has already been freed");
|
||||
return;
|
||||
}
|
||||
|
||||
if (st->marker != ENCODERVALID && st->marker != ENCODERPARTIAL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue