mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-02 14:04:27 +00:00
Close f on error in LoadDictionary.
This commit is contained in:
+3
-1
@@ -1,7 +1,7 @@
|
||||
/***************************************************************************
|
||||
* Copyright (C) 2005 to 2014 by Jonathan Duddington *
|
||||
* email: jonsd@users.sourceforge.net *
|
||||
* Copyright (C) 2013 Reece H. Dunn *
|
||||
* Copyright (C) 2013-2015 Reece H. Dunn *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
@@ -269,6 +269,8 @@ int LoadDictionary(Translator *tr, const char *name, int no_error)
|
||||
{
|
||||
fprintf(stderr,"Can't read dictionary file: '%s'\n",fname);
|
||||
}
|
||||
if (f != NULL)
|
||||
fclose(f);
|
||||
return(1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user