From: Prashanth Kumar Date: Mon, 3 Feb 2014 12:19:02 +0000 (+0530) Subject: wpa_supplicant: Fix misplaced os_free X-Git-Tag: hostap_2_1~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1b56d398a7646c66fd3df8f0a5159c920f99de36;p=thirdparty%2Fhostap.git wpa_supplicant: Fix misplaced os_free os_free has wfd_dev_info_hex as an argument which is defined within CONFIG_NO_STDOUT_DEBUG Signed-hostap: Prashanth Kumar --- diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c index 8d6c381cd..2928b6fe0 100644 --- a/wpa_supplicant/p2p_supplicant.c +++ b/wpa_supplicant/p2p_supplicant.c @@ -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); }