forked from github/server
plug some new memory leaks
This commit is contained in:
parent
95ab2826ec
commit
077a0aeeef
|
@ -563,10 +563,7 @@ void push_order(order ** ordp, order * ord)
|
||||||
|
|
||||||
keyword_t init_order(const struct order *ord)
|
keyword_t init_order(const struct order *ord)
|
||||||
{
|
{
|
||||||
char *cmd = 0;
|
|
||||||
|
|
||||||
assert(ord && ord->data);
|
assert(ord && ord->data);
|
||||||
if (ord->data->_str) cmd = _strdup(ord->data->_str);
|
init_tokens_str(ord->data->_str);
|
||||||
init_tokens_str(cmd);
|
|
||||||
return ord->data->_keyword;
|
return ord->data->_keyword;
|
||||||
}
|
}
|
||||||
|
|
|
@ -319,6 +319,7 @@ void free_locales(void) {
|
||||||
free(strings);
|
free(strings);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
free(locales->name);
|
||||||
free(locales);
|
free(locales);
|
||||||
locales = next;
|
locales = next;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue