diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-05-14 04:48:49 -0500 |
---|---|---|
committer | Bosdonnat Cedric <cedric.bosdonnat@free.fr> | 2013-05-14 13:37:36 +0000 |
commit | e5b2edfb93adcd65b00eaa0eb8b5cfa6760e7034 (patch) | |
tree | 5a1f56e45a8bb2802fca66f8cd0a085910077bbf /desktop/unx/source/start.c | |
parent | 372063ac1363a9dfda6b2df94ef22fe1f3828fd4 (diff) |
coverity#982969 Resource leak
Change-Id: Iabf637be4b704de4165c5cefb6a19687a1b5637a
Reviewed-on: https://gerrit.libreoffice.org/3902
Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
Diffstat (limited to 'desktop/unx/source/start.c')
-rw-r--r-- | desktop/unx/source/start.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/desktop/unx/source/start.c b/desktop/unx/source/start.c index 040110e7c390..a488f955a319 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; } |