P2P: Fix memory leak with driver-based P2P management
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 24 Aug 2012 17:45:22 +0000 (20:45 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 24 Aug 2012 17:45:22 +0000 (20:45 +0300)
commitbf428a739c9b3b6001b2de857ef37b54ec12c510
tree6d4767c716f2ededd79a52314b63a257e85479c0
parent1e05192eec05d83422aa9a545d7f05bd263bd59d
P2P: Fix memory leak with driver-based P2P management

If the P2P management operations are handled within the driver, the
P2P service entries were not freed when terminating wpa_supplicant.
Fix this by calling wpas_p2p_service_flush() even if the P2P module
within wpa_supplicant has not been initialized.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/p2p_supplicant.c