sk_free_peer_info.c 265 B

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