mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 14:42:30 +00:00
fix another leak
This commit is contained in:
parent
c5dfa314ad
commit
8dfc585c59
@ -339,6 +339,8 @@ bool netplay_lan_ad_server(netplay_t *netplay)
|
|||||||
/* And send it */
|
/* And send it */
|
||||||
sendto(lan_ad_server_fd, (const char*)&ad_packet_buffer,
|
sendto(lan_ad_server_fd, (const char*)&ad_packet_buffer,
|
||||||
sizeof(struct ad_packet), 0, our_addr->ai_addr, our_addr->ai_addrlen);
|
sizeof(struct ad_packet), 0, our_addr->ai_addr, our_addr->ai_addrlen);
|
||||||
|
if (our_addr)
|
||||||
|
freeaddrinfo_retro(our_addr);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
continue;
|
continue;
|
||||||
@ -347,10 +349,10 @@ bool netplay_lan_ad_server(netplay_t *netplay)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
net_ifinfo_free(&interfaces);
|
net_ifinfo_free(&interfaces);
|
||||||
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user