Commit 26a1199e authored by Rob Latham's avatar Rob Latham
Browse files

[svn-r5679] make sure all code paths, even errors, decrement the nesting level

parent ca232fad
......@@ -90,13 +90,12 @@ int MPI_File_close(MPI_File *mpi_fh)
HPMP_IO_WEND(fl_xmpi);
#endif /* MPI_hpux */
MPIR_Nest_decr();
fn_exit:
MPIR_Nest_decr();
MPIU_THREAD_CS_EXIT(ALLFUNC,);
return error_code;
fn_fail:
/* --BEGIN ERROR HANDLING-- */
MPIR_Nest_decr();
error_code = MPIO_Err_return_file(fh, error_code);
goto fn_exit;
/* --END ERROR HANDLING-- */
......
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