Terminal: Fixed resource leak CID:702031
Signed-off-by: Jérôme Duval <[email protected]>
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user