wpa_supplicant: Fix misplaced os_free
authorPrashanth Kumar <prashanthkumar.kr@globaledgesoft.com>
Mon, 3 Feb 2014 12:19:02 +0000 (17:49 +0530)
committerJouni Malinen <j@w1.fi>
Mon, 3 Feb 2014 17:35:09 +0000 (19:35 +0200)
os_free has wfd_dev_info_hex as an argument which is defined within
CONFIG_NO_STDOUT_DEBUG

Signed-hostap: Prashanth Kumar <prashanthkumar.kr@globaledgesoft.com>

wpa_supplicant/p2p_supplicant.c

index 8d6c381..2928b6f 100644 (file)
@@ -1684,9 +1684,9 @@ static void wpas_dev_found(void *ctx, const u8 *addr,
                       info->dev_capab, info->group_capab,
                       wfd_dev_info_hex ? " wfd_dev_info=0x" : "",
                       wfd_dev_info_hex ? wfd_dev_info_hex : "");
-#endif /* CONFIG_NO_STDOUT_DEBUG */
 
        os_free(wfd_dev_info_hex);
+#endif /* CONFIG_NO_STDOUT_DEBUG */
 
        wpas_notify_p2p_device_found(ctx, info->p2p_device_addr, new_device);
 }