WNM: Fix a memory leak on AP error path
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 22 Feb 2016 17:34:06 +0000 (19:34 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 22 Feb 2016 17:53:05 +0000 (19:53 +0200)
commit3f48274d0ebce7a8fbbe0ac0e73da8d6d2cdff70
treef0f6c3fa0cbf71d229cd231660ebcaea76f1d5c5
parentf5ca1766dc93f8fb65efdd43670f1d7a74dba581
WNM: Fix a memory leak on AP error path

If the second memory allocation in ieee802_11_send_wnmsleep_resp() were
to fail and ieee80211_11_get_tfs_ie() succeed, the wnmtfs_ie allocation
would not have been freed on the error path.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/wnm_ap.c