diff --git a/components/p2p/core/src/wlan_p2p_main.c b/components/p2p/core/src/wlan_p2p_main.c index 733b4d675b72..ab95df6c2372 100644 --- a/components/p2p/core/src/wlan_p2p_main.c +++ b/components/p2p/core/src/wlan_p2p_main.c @@ -1085,8 +1085,8 @@ QDF_STATUS p2p_event_flush_callback(struct scheduler_msg *msg) break; case P2P_EVENT_MGMT_TX_ACK_CNF: tx_conf_event = (struct p2p_tx_conf_event *)msg->bodyptr; - qdf_mem_free(tx_conf_event); qdf_nbuf_free(tx_conf_event->nbuf); + qdf_mem_free(tx_conf_event); break; case P2P_EVENT_LO_STOPPED: lo_stop_event = (struct p2p_lo_stop_event *)msg->bodyptr;