Skip to content

Commit

Permalink
Merge pull request esnet#1333 from esnet/issue-1332
Browse files Browse the repository at this point in the history
Fix memory leak in an error condition.
  • Loading branch information
bmah888 authored May 12, 2022
2 parents 3a8e21f + abb24a2 commit 0208757
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 @@ -2703,6 +2703,7 @@ iperf_new_test()

test->bitrate_limit_intervals_traffic_bytes = (iperf_size_t *) malloc(sizeof(iperf_size_t) * MAX_INTERVAL);
if (!test->bitrate_limit_intervals_traffic_bytes) {
free(test->settings);
free(test);
i_errno = IENEWTEST;
return NULL;
Expand Down

0 comments on commit 0208757

Please sign in to comment.