Kaydet (Commit) 9a406c5a authored tarafından Caolán McNamara's avatar Caolán McNamara

valgrind: don't close invalid fd

üst 3aeea4b9
...@@ -877,12 +877,13 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS( argc, argv ) ...@@ -877,12 +877,13 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS( argc, argv )
osl_getProcessWorkingDir( &pCwdPath ); osl_getProcessWorkingDir( &pCwdPath );
bSentArgs = send_args( fd, pCwdPath ); bSentArgs = send_args( fd, pCwdPath );
close( fd );
} }
#if OSL_DEBUG_LEVEL > 0 #if OSL_DEBUG_LEVEL > 0
else else
ustr_debug( "Failed to connect to pipe", pPipePath ); ustr_debug( "Failed to connect to pipe", pPipePath );
#endif #endif
close( fd );
if ( !bSentArgs ) if ( !bSentArgs )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment