P2PS: Add a function to free a PD context
Free a PD context with a function encapsulating both os_free() call and setting a PD context pointer to NULL. Signed-off-by: Max Stepanov <Max.Stepanov@intel.com> Reviewed-by: Ilan Peer <ilan.peer@intel.com>
This commit is contained in:
parent
a4c4c1d0e4
commit
3f048aa8d2
3 changed files with 15 additions and 12 deletions
|
@ -2970,7 +2970,7 @@ void p2p_deinit(struct p2p_data *p2p)
|
|||
os_free(p2p->cfg->serial_number);
|
||||
os_free(p2p->cfg->pref_chan);
|
||||
os_free(p2p->groups);
|
||||
os_free(p2p->p2ps_prov);
|
||||
p2ps_prov_free(p2p);
|
||||
wpabuf_free(p2p->sd_resp);
|
||||
os_free(p2p->after_scan_tx);
|
||||
p2p_remove_wps_vendor_extensions(p2p);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue