plug some new memory leaks

This commit is contained in:
Enno Rehling 2014-12-30 00:00:57 +01:00
parent 95ab2826ec
commit 077a0aeeef
2 changed files with 2 additions and 4 deletions

View File

@ -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;
} }

View File

@ -319,6 +319,7 @@ void free_locales(void) {
free(strings); free(strings);
} }
} }
free(locales->name);
free(locales); free(locales);
locales = next; locales = next;
} }