Skip to content

Commit

Permalink
WT-6640 Coverity: Failure to restore saved dhandle (#5991)
Browse files Browse the repository at this point in the history
  • Loading branch information
tetsuo-cpp committed Sep 2, 2020
1 parent 0ce0761 commit 6178681
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/session/session_api.c
Expand Up @@ -267,7 +267,8 @@ __session_close(WT_SESSION *wt_session, const char *config)
SESSION_API_CALL_PREPARE_ALLOWED(session, close, config, cfg);
WT_UNUSED(cfg);

return (__wt_session_close_internal(session));
WT_ERR(__wt_session_close_internal(session));
session = NULL;

err:
API_END_RET_NOTFOUND_MAP(session, ret);
Expand Down

0 comments on commit 6178681

Please sign in to comment.