Fix another minor memory leak.

Submitted by:	Susant Sahani <ssahani@redhat.com>
This commit is contained in:
Bruce A. Mah 2014-01-02 13:26:51 -08:00
parent e3faf8e421
commit 7da3d76096

View File

@ -2137,6 +2137,7 @@ iperf_new_stream(struct iperf_test *test, int s)
sp->settings = test->settings;
sp->result = (struct iperf_stream_result *) malloc(sizeof(struct iperf_stream_result));
if (!sp->result) {
free(sp);
i_errno = IECREATESTREAM;
return NULL;
}