Skip to content

Commit

Permalink
HG util: fix dlog_free not called when parent/child have separate dlogs
Browse files Browse the repository at this point in the history
  • Loading branch information
soumagne committed Jul 25, 2024
1 parent 3bba023 commit 7d34ab7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/util/mercury_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,8 @@ void
hg_log_outlet_deregister(struct hg_log_outlet *hg_log_outlet)
{
if (hg_log_outlet->debug_log &&
!(hg_log_outlet->parent && hg_log_outlet->parent->debug_log)) {
!(hg_log_outlet->parent &&
hg_log_outlet->parent->debug_log == hg_log_outlet->debug_log)) {
if (hg_log_outlet->level >= HG_LOG_LEVEL_MIN_DEBUG) {
FILE *stream = hg_log_streams_g[hg_log_outlet->level]
? hg_log_streams_g[hg_log_outlet->level]
Expand Down

0 comments on commit 7d34ab7

Please sign in to comment.