[Libreoffice-commits] core.git: desktop/unx
Norbert Thiebaud
nthiebaud at gmail.com
Tue May 14 06:37:58 PDT 2013
desktop/unx/source/start.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit e5b2edfb93adcd65b00eaa0eb8b5cfa6760e7034
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date: Tue May 14 04:48:49 2013 -0500
coverity#982969 Resource leak
Change-Id: Iabf637be4b704de4165c5cefb6a19687a1b5637a
Reviewed-on: https://gerrit.libreoffice.org/3902
Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat at free.fr>
Tested-by: Bosdonnat Cedric <cedric.bosdonnat at free.fr>
diff --git a/desktop/unx/source/start.c b/desktop/unx/source/start.c
index 040110e..a488f95 100644
--- a/desktop/unx/source/start.c
+++ b/desktop/unx/source/start.c
@@ -380,8 +380,10 @@ connect_pipe( rtl_uString *pPipePath )
#endif
if ( connect( fd, (struct sockaddr *)&addr, len ) < 0 )
- return -1;
-
+ {
+ close(fd);
+ fd = -1;
+ }
return fd;
}
More information about the Libreoffice-commits
mailing list