forked from github/server
leak: free locale_data
This commit is contained in:
parent
b5455531e7
commit
3200dd2dc8
1 changed files with 2 additions and 3 deletions
|
@ -259,13 +259,12 @@ static void free_localedata(int lindex) {
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i != MAXKEYWORDS; ++i) {
|
for (i = 0; i != MAXKEYWORDS; ++i) {
|
||||||
release_data(locale_array[lindex]->short_orders[i]);
|
release_data(locale_array[lindex]->short_orders[i]);
|
||||||
locale_array[lindex]->short_orders[i] = 0;
|
|
||||||
}
|
}
|
||||||
for (i = 0; i != MAXSKILLS; ++i) {
|
for (i = 0; i != MAXSKILLS; ++i) {
|
||||||
release_data(locale_array[lindex]->study_orders[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) {
|
void close_orders(void) {
|
||||||
|
|
Loading…
Reference in a new issue