summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-03-23 11:27:35 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-03-23 11:27:35 +0000
commitc7fa546f50dfb103121eefe1b7483975282df451 (patch)
tree3ad891621e626f0d1a17bfee641e914b66118050 /desktop
parent4cea8c42b8fc300bfea02711c2336cb5fd1a69ee (diff)
valgrind: don't close invalid fd
Diffstat (limited to 'desktop')
-rwxr-xr-xdesktop/unx/source/start.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop/unx/source/start.c b/desktop/unx/source/start.c
index b59eb7dc54..2b9b3e358f 100755
--- a/desktop/unx/source/start.c
+++ b/desktop/unx/source/start.c
@@ -877,12 +877,13 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS( argc, argv )
osl_getProcessWorkingDir( &pCwdPath );
bSentArgs = send_args( fd, pCwdPath );
+
+ close( fd );
}
#if OSL_DEBUG_LEVEL > 0
else
ustr_debug( "Failed to connect to pipe", pPipePath );
#endif
- close( fd );
if ( !bSentArgs )
{