diff options
Diffstat (limited to 'Src/Modules/tcp.c')
-rw-r--r-- | Src/Modules/tcp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/Modules/tcp.c b/Src/Modules/tcp.c index 78ce386db..33b7a613a 100644 --- a/Src/Modules/tcp.c +++ b/Src/Modules/tcp.c @@ -636,6 +636,8 @@ bin_ztcp(char *nam, char **args, char *ops, int func) if (err) { zwarnnam(nam, "connection failed: %e", NULL, errno); tcp_close(sess); + zsfree(desthost); + return 1; } else { |