summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-21 22:12:58 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-21 22:12:58 +0000
commita1923e617066da321821a8ccbdf0fbadd77d80de (patch)
treeb9d584225fb0ecd77e49493da2d6f80fd4a44186 /ipc
parentb61c145d0b762e5ef324073091ba6a67f7fc71f0 (diff)
downloadchromium_src-a1923e617066da321821a8ccbdf0fbadd77d80de.zip
chromium_src-a1923e617066da321821a8ccbdf0fbadd77d80de.tar.gz
chromium_src-a1923e617066da321821a8ccbdf0fbadd77d80de.tar.bz2
Coverity: Fix leaks.
CID=2168,8197,8198,100251,100256,100820,101011,101982,101983,101984,101988, 102256 BUG=none TEST=none R=dpapad Review URL: http://codereview.chromium.org/8989036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115422 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc')
-rw-r--r--ipc/ipc_channel_posix.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/ipc/ipc_channel_posix.cc b/ipc/ipc_channel_posix.cc
index ffa69b57..d44c008 100644
--- a/ipc/ipc_channel_posix.cc
+++ b/ipc/ipc_channel_posix.cc
@@ -170,6 +170,8 @@ bool CreateServerUnixDomainSocket(const std::string& pipe_name,
FilePath path(pipe_name);
FilePath dir_path = path.DirName();
if (!file_util::CreateDirectory(dir_path)) {
+ if (HANDLE_EINTR(close(fd)) < 0)
+ PLOG(ERROR) << "close " << pipe_name;
return false;
}