P2P: Cleanup by removing unnecessary os_free() call from p2p_deinit()

Remove the unnecessary os_free() call from p2p_deinit() since
p2p_flush() called just above this takes care of freeing
p2p->after_scan_tx and the second call here ends up being no-op
os_free(NULL) in practice.

Signed-off-by: Mayank Haarit <mayank.h@samsung.com>
This commit is contained in:
MAYANK HAARIT 2016-07-04 05:12:39 +00:00 committed by Jouni Malinen
parent e347cafe57
commit 77d468e4db

View file

@ -2999,7 +2999,6 @@ void p2p_deinit(struct p2p_data *p2p)
os_free(p2p->groups);
p2ps_prov_free(p2p);
wpabuf_free(p2p->sd_resp);
os_free(p2p->after_scan_tx);
p2p_remove_wps_vendor_extensions(p2p);
os_free(p2p->no_go_freq.range);
p2p_service_flush_asp(p2p);