summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
Diffstat (limited to 'Src')
-rw-r--r--Src/Modules/tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Modules/tcp.c b/Src/Modules/tcp.c
index da70855ed..2b9e9df18 100644
--- a/Src/Modules/tcp.c
+++ b/Src/Modules/tcp.c
@@ -565,7 +565,7 @@ bin_ztcp(char *nam, char **args, Options ops, UNUSED(int func))
 		    if (zthost)
 			localname = zthost->h_name;
 		    else
-			localname = ztrdup(inet_ntoa(sess->sock.in.sin_addr));
+			localname = inet_ntoa(sess->sock.in.sin_addr);
 		    ztpeer = gethostbyaddr((const void *)&(sess->peer.in.sin_addr), sizeof(sess->peer.in.sin_addr), AF_INET);
 		    if (ztpeer)
 			remotename = ztpeer->h_name;