Skip to content

Commit

Permalink
Reset ACE_Log_Msg::msg_ostream after closing
Browse files Browse the repository at this point in the history
  • Loading branch information
likema committed Jul 19, 2024
1 parent 9dd8a78 commit 47e7ac6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ACE/ace/Logging_Strategy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ ACE_Logging_Strategy::handle_timeout (const ACE_Time_Value &,
#if defined (ACE_LACKS_IOSTREAM_TOTALLY)
FILE *output_file = (FILE *) this->log_msg_->msg_ostream ();
ACE_OS::fclose (output_file);
this->log_msg_->msg_ostream (0);
this->log_msg_->msg_ostream (nullptr);
#else
ofstream *output_file =
(ofstream *) this->log_msg_->msg_ostream ();
Expand Down

0 comments on commit 47e7ac6

Please sign in to comment.