mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-18 18:50:25 +00:00
Don't free 'tr' if null in DeleteTranslator.
This commit is contained in:
@@ -284,6 +284,8 @@ int isspace2(unsigned int c)
|
||||
|
||||
void DeleteTranslator(Translator *tr)
|
||||
{
|
||||
if (!tr) return;
|
||||
|
||||
if (tr->data_dictlist != NULL)
|
||||
free(tr->data_dictlist);
|
||||
free(tr);
|
||||
|
||||
Reference in New Issue
Block a user