rexec: fix free error in error handing
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
parent
66d854371b
commit
a1eb3f66fa
|
@ -158,7 +158,7 @@ int rexec_af(FAR char **ahost, int inport, FAR const char *user,
|
|||
conn_out:
|
||||
close(sock);
|
||||
sock_out:
|
||||
free(ahost);
|
||||
free(*ahost);
|
||||
addr_out:
|
||||
freeaddrinfo(res);
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue