commit | 891dfb333699db01679b5fc38344186ad21243b2 | [log] [tgz] |
---|---|---|
author | Stefan Tomanek <stefan.tomanek@wertarbyte.de> | Mon Jan 19 23:57:41 2015 +0100 |
committer | Jouni Malinen <j@w1.fi> | Sat Feb 21 17:11:15 2015 +0200 |
tree | 5d7bf0b4c36a74bf702939d64226b2fc4f032ebc | |
parent | cfb5576d9343a1b0605e0a3024d3194daa74ed9e [diff] |
Add helper function to clear and free wpa_psk list This change adds the function hostapd_config_clear_wpa_psk() that deletes an entire wpa_psk structure, making sure to follow the linked list and to free the allocated memory of each PSK node. This helps to prevent memory leaks when using PSKs from multiple sources and reconfiguring the AP during runtime. Signed-off-by: Stefan Tomanek <stefan.tomanek@wertarbyte.de>