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
commit9a406c5a6bae2e3be5889bd59d6e8343757479f8 (patch)
treea0a108e638c1ef636c5fd395c15c899984ffa2c8 /desktop
parent3aeea4b98514e3f5976f8d0af7cd08fa23372730 (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 ef7170d8f9f0..6e90156e0aeb 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 )
{