mirror of
https://github.com/gperftools/gperftools
synced 2025-01-20 14:00:52 +00:00
issue-658: correctly close socketpair fds when socketpair fails
This applies patch by glider.
This commit is contained in:
parent
e7d5e512b0
commit
3ace468202
@ -156,8 +156,8 @@ int SymbolTable::Symbolize() {
|
||||
close(child_fds[j][0]);
|
||||
close(child_fds[j][1]);
|
||||
PrintError("Cannot create a socket pair");
|
||||
return 0;
|
||||
}
|
||||
return 0;
|
||||
} else {
|
||||
if ((child_fds[i][0] > 2) && (child_fds[i][1] > 2)) {
|
||||
if (child_in == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user