1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00
putty-source/utils/sk_free_peer_info.c
Simon Tatham f454c84a23 Rename SocketPeerInfo to SocketEndpointInfo.
I'm preparing to be able to ask about the other end of the connection
too, so the first step is to give this data structure a neutral name
that can refer to either. No functional change yet.
2024-06-29 11:49:32 +01:00

15 lines
263 B
C

/*
* Free a SocketEndpointInfo, and everything that dangles off it.
*/
#include "putty.h"
void sk_free_endpoint_info(SocketEndpointInfo *ei)
{
if (ei) {
sfree((char *)ei->addr_text);
sfree((char *)ei->log_text);
sfree(ei);
}
}