Skip to content

Commit

Permalink
lib-master: Fix crash when stats events are merged all the way to the…
Browse files Browse the repository at this point in the history
… root
  • Loading branch information
sirainen authored and villesavolainen committed Sep 7, 2018
1 parent 9c19112 commit bc2ea7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib-master/stats-client.c
Expand Up @@ -199,7 +199,8 @@ static struct event *stats_event_get_merged(struct event *event)
res = event_dup(event);
event_unref(&res->parent);
res->parent = p;
event_ref(res->parent);
if (res->parent != NULL)
event_ref(res->parent);
}
return res;
}
Expand Down

0 comments on commit bc2ea7e

Please sign in to comment.