Skip to content

Commit

Permalink
Fix memory leak in iperf_print_results
Browse files Browse the repository at this point in the history
  • Loading branch information
MattCatz authored Jun 9, 2024
1 parent 8b39c84 commit 8a62bb7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/iperf_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -4200,6 +4200,7 @@ iperf_print_results(struct iperf_test *test)
}
if (test->server_output_text) {
iperf_printf(test, "\nServer output:\n%s\n", test->server_output_text);
free(test->server_output_text);
test->server_output_text = NULL;
}
}
Expand Down

0 comments on commit 8a62bb7

Please sign in to comment.