Skip to content

Commit 8a62bb7

Browse files
authored
Fix memory leak in iperf_print_results
1 parent 8b39c84 commit 8a62bb7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/iperf_api.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4200,6 +4200,7 @@ iperf_print_results(struct iperf_test *test)
42004200
}
42014201
if (test->server_output_text) {
42024202
iperf_printf(test, "\nServer output:\n%s\n", test->server_output_text);
4203+
free(test->server_output_text);
42034204
test->server_output_text = NULL;
42044205
}
42054206
}

0 commit comments

Comments
 (0)