mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 15:32:59 +00:00
Merge pull request #4682 from GregorR/natt-else-clause
Fix missing memory free when IPv6 is unsupported
This commit is contained in:
commit
d2a5f53f8d
@ -149,12 +149,12 @@ static bool natt_open_port(struct natt_status *status,
|
|||||||
status->have_inet6 = true;
|
status->have_inet6 = true;
|
||||||
status->ext_inet6_addr = *((struct sockaddr_in6 *) ext_addrinfo->ai_addr);
|
status->ext_inet6_addr = *((struct sockaddr_in6 *) ext_addrinfo->ai_addr);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
freeaddrinfo_retro(ext_addrinfo);
|
freeaddrinfo_retro(ext_addrinfo);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user