Terminal: Fixed resource leak CID:702031

Signed-off-by: Jérôme Duval <[email protected]>
This commit is contained in:
Ezo
2013-11-24 12:18:09 +01:00
committed by Jérôme Duval
parent 8304ec7c12
commit aeaf492157
+3 -2
View File
@@ -615,11 +615,12 @@ Shell::_Spawn(int row, int col, const ShellParameters& parameters)
} }
} }
if (done <= 0) if (done <= 0) {
close(master);
return B_ERROR; return B_ERROR;
}
fFd = master; fFd = master;
return B_OK; return B_OK;
} }