You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/03/16 09:13:35 UTC
[incubator-nuttx-apps] 02/02: iperf: Plug a memory leak
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
commit f8cb9db7295aef77d4db624f90dad93905625ece
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Tue Mar 16 15:19:55 2021 +0900
iperf: Plug a memory leak
---
netutils/iperf/iperf_main.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/netutils/iperf/iperf_main.c b/netutils/iperf/iperf_main.c
index f559a86..15c1c08 100644
--- a/netutils/iperf/iperf_main.c
+++ b/netutils/iperf/iperf_main.c
@@ -215,6 +215,9 @@ int main(int argc, FAR char *argv[])
}
}
+ arg_freetable((FAR void **)&iperf_args,
+ sizeof(iperf_args) / sizeof(FAR void *));
+
printf("\n mode=%s-%s "
"sip=%" PRId32 ".%" PRId32 ".%" PRId32 ".%" PRId32 ":%d,"
"dip=%" PRId32 ".%" PRId32 ".%" PRId32 ".%" PRId32 ":%d, "