Diff between 7a638557049441ec055729055dcfb5fc38c5d06a and 566af9c2f5efaa33ebb093efb3a03f83876943ba

Changed Files

File Additions Deletions Status
tools/test-runner.c +2 -0 modified

Full Patch

diff --git a/tools/test-runner.c b/tools/test-runner.c
index 9083272..de0f226 100644
--- a/tools/test-runner.c
+++ b/tools/test-runner.c
@@ -952,6 +952,8 @@ start_next:
 	pid = fork();
 	if (pid < 0) {
 		perror("Failed to fork new process");
+		if (serial_fd >= 0)
+			close(serial_fd);
 		return;
 	}