mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-24 11:45:16 +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 */
|
||||
sendto(lan_ad_server_fd, (const char*)&ad_packet_buffer,
|
||||
sizeof(struct ad_packet), 0, our_addr->ai_addr, our_addr->ai_addrlen);
|
||||
if (our_addr)
|
||||
freeaddrinfo_retro(our_addr);
|
||||
}
|
||||
else
|
||||
continue;
|
||||
@ -347,10 +349,10 @@ bool netplay_lan_ad_server(netplay_t *netplay)
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
net_ifinfo_free(&interfaces);
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user