mirror of
https://github.com/apache/nuttx.git
synced 2026-09-14 22:50:25 +00:00
rexec: fix free error in error handing
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
parent
66d854371b
commit
a1eb3f66fa
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue