free wfd_r2_dev_info to avoid memmory leak

Bug: 312033374

Allocated memory for wfd_r2_dev_info when the p2p device was found.
But not freed the memory after notifying the R2 information.
This causes memory leak.

Fixed the issue by freeing the memmory for wfd_r2_dev_info after usage.

Bug: 312033374
Test: Wi-Fi Direct Scan and connection via WiFi-Direct settings window
Change-Id: I70d72c4d76e3ee5f23849de6de7acc9282a30f26
Signed-off-by: jiangpingping <jiangpingping@xiaomi.com>
1 file changed