trace: Free symbols on program exit
This makes valgrind memleak checks with CONFIG_WPA_TRACE=y somewhat cleaner. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
8bcf8de827
commit
6136d43b8e
3 changed files with 10 additions and 0 deletions
|
@ -366,4 +366,11 @@ void wpa_trace_check_ref(const void *addr)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
void wpa_trace_deinit(void)
|
||||
{
|
||||
free(syms);
|
||||
syms = NULL;
|
||||
}
|
||||
|
||||
#endif /* WPA_TRACE */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue