P2PS: Add a function to free a PD context
authorMax Stepanov <Max.Stepanov@intel.com>
Wed, 10 Jun 2015 08:43:40 +0000 (11:43 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 14 Jun 2015 20:16:55 +0000 (23:16 +0300)
commit3f048aa8d2e9775d0b5c7a0b2f5c3a6c2225fc7f
treece1d074a6682fa52d52881e8375cfca266aa8b73
parenta4c4c1d0e4d775c31776f466121a47d533e52f26
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>
src/p2p/p2p.c
src/p2p/p2p_i.h
src/p2p/p2p_pd.c