X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/b165006759a81e8ecc4e86e0540fd69343ea46e9..038ec85e825fc940c1387f64a88ae73b75f6822b:/portfwd.c diff --git a/portfwd.c b/portfwd.c index 70b89100..97c1cb74 100644 --- a/portfwd.c +++ b/portfwd.c @@ -386,6 +386,7 @@ const char *pfd_newconnect(Socket *s, char *hostname, int port, pr->s = *s = new_connection(addr, dummy_realhost, port, 0, 1, 0, 0, (Plug) pr, conf); + sfree(dummy_realhost); if ((err = sk_socket_error(*s)) != NULL) { free_portfwd_private(pr); return err;