Remove temp file.

This commit is contained in:
Jef Poskanzer 2013-05-25 07:22:11 -07:00
parent d95da48aee
commit aa0e8fd5ac

View File

@ -1741,6 +1741,10 @@ iperf_new_stream(struct iperf_test *test, int s)
i_errno = IECREATESTREAM;
return NULL;
}
if (unlink(template) < 0) {
i_errno = IECREATESTREAM;
return NULL;
}
if (ftruncate(sp->buffer_fd, test->settings->blksize) < 0) {
i_errno = IECREATESTREAM;
return NULL;