P2P: Fix memory leak on GO startup failure path
authorJouni Malinen <j@w1.fi>
Wed, 24 Dec 2014 17:23:13 +0000 (19:23 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 25 Dec 2014 14:37:12 +0000 (16:37 +0200)
commiteae3df7ee4edae506b1063252adfe46eabd3a37e
tree35321c3dddbfc8a6e0366f064429b28cefeb4895
parentc715b31f1848c40b17b5202424f419f57fcf32b8
P2P: Fix memory leak on GO startup failure path

Some of the struct hostapd_data variables get initialized with allocated
memory in the P2P GO case even before hapd->started has been set to 1.
As such, hostapd_free_hapd_data() needs to free these even if
!hapd->stated.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/ap/hostapd.c