Add missing cleanup timer when test is terminated.
Change-Id: I2a3d80348e942f4b2ffec9bdd6cf697c65826668
Signed-off-by: EunBong Song <eunb.song@samsung.com>
tmr_cancel(test->reporter_timer);
}
+ tmr_cleanup();
+
/* Free protocol list */
while (!SLIST_EMPTY(&test->protocols)) {
prot = SLIST_FIRST(&test->protocols);
}
if (run(test) < 0) {
+ iperf_free_test(test);
iperf_errexit(test, "error - %s", iperf_strerror(i_errno));
}
break;
case 'c':
if (iperf_run_client(test) < 0) {
+ close(test->ctrl_sck);
+ iperf_free_test(test);
iperf_errexit(test, "error - %s", iperf_strerror(i_errno));
}
break;