aboutsummaryrefslogtreecommitdiff
path: root/inet/rcmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'inet/rcmd.c')
-rw-r--r--inet/rcmd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/inet/rcmd.c b/inet/rcmd.c
index 452ff7d..0cfdaee 100644
--- a/inet/rcmd.c
+++ b/inet/rcmd.c
@@ -153,6 +153,7 @@ rcmd_af (char **ahost, u_short rport, const char *locuser, const char *remuser,
free (ahostbuf);
ahostbuf = __strdup (res->ai_canonname);
if (ahostbuf == NULL) {
+ freeaddrinfo (res);
__fxprintf(NULL, "%s",
_("rcmd: Cannot allocate memory\n"));
return -1;