leak: free locale_data

This commit is contained in:
Enno Rehling 2015-10-14 21:51:43 +02:00
parent b5455531e7
commit 3200dd2dc8
1 changed files with 2 additions and 3 deletions

View File

@ -259,13 +259,12 @@ static void free_localedata(int lindex) {
int i;
for (i = 0; i != MAXKEYWORDS; ++i) {
release_data(locale_array[lindex]->short_orders[i]);
locale_array[lindex]->short_orders[i] = 0;
}
for (i = 0; i != MAXSKILLS; ++i) {
release_data(locale_array[lindex]->study_orders[i]);
locale_array[lindex]->study_orders[i] = 0;
}
locale_array[lindex]->lang = 0;
free(locale_array[lindex]);
locale_array[lindex] = 0;
}
void close_orders(void) {