forked from github/server
leak: free locale_data
This commit is contained in:
parent
b5455531e7
commit
3200dd2dc8
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue