airpdcap: add free_key_string function, fix memleaks
authorPeter Wu <peter@lekensteyn.nl>
Wed, 7 Oct 2015 12:24:56 +0000 (14:24 +0200)
committerPeter Wu <peter@lekensteyn.nl>
Fri, 9 Oct 2015 14:35:41 +0000 (14:35 +0000)
commita7ab4af2ab4db5d5fdd5d489bf6b4171a8b1b8d9
tree8514746965e6d6f5865555d323d2fae3039c9a9b
parent3dd7e69ed7c72594f676396be822d35b130ab2e6
airpdcap: add free_key_string function, fix memleaks

Do not leak the key and SSID. Note that there are still some leaks in
the GTK UI related to get_wireshark_keys(), but I did not track them
down.

Caught by LeakSanitizer.

Change-Id: I639166e6ea457605d6ae0ebd58e56d7594a7b7db
Reviewed-on: https://code.wireshark.org/review/10860
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
debian/libwireshark0.symbols
epan/crypt/airpdcap.c
epan/crypt/airpdcap_user.h
epan/dissectors/packet-ieee80211.c
ui/gtk/airpcap_gui_utils.c