sk_free_peer_info.c 263 B

123456789101112131415
  1. /*
  2. * Free a SocketEndpointInfo, and everything that dangles off it.
  3. */
  4. #include "putty.h"
  5. void sk_free_endpoint_info(SocketEndpointInfo *ei)
  6. {
  7. if (ei) {
  8. sfree((char *)ei->addr_text);
  9. sfree((char *)ei->log_text);
  10. sfree(ei);
  11. }
  12. }