utils: Initialize list head after freeing translation list
Problem found and fix proposed by Andrew Kraslavsky <andykras@hotmail.com>
This commit is contained in:
parent
790966d69a
commit
30d3f8c199
1 changed files with 2 additions and 0 deletions
|
@ -885,6 +885,8 @@ void __trans_list_clear(struct nl_list_head *head)
|
|||
free(tl->a);
|
||||
free(tl);
|
||||
}
|
||||
|
||||
nl_init_list_head(head);
|
||||
}
|
||||
|
||||
char *__type2str(int type, char *buf, size_t len,
|
||||
|
|
Loading…
Add table
Reference in a new issue