Browse Source

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>
MAYANK HAARIT 8 years ago
parent
commit
77d468e4db
1 changed files with 0 additions and 1 deletions
  1. 0 1
      src/p2p/p2p.c

+ 0 - 1
src/p2p/p2p.c

@@ -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);