From: Timo Sirainen Date: Fri, 30 Jan 2026 18:22:10 +0000 (+0200) Subject: lib: If passthrough event is leaked, include in the panic message where it was created at X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcc7b50da19d489856a2abbc1411d56b8026eb58;p=thirdparty%2Fdovecot%2Fcore.git lib: If passthrough event is leaked, include in the panic message where it was created at --- diff --git a/src/lib/lib-event.c b/src/lib/lib-event.c index 1876d690c7..30c4c687a3 100644 --- a/src/lib/lib-event.c +++ b/src/lib/lib-event.c @@ -453,7 +453,9 @@ event_create_passthrough(struct event *parent, const char *source_filename, if (event_last_passthrough != NULL) { /* API is being used in a wrong or dangerous way */ i_panic("Can't create multiple passthrough events - " - "finish the earlier with ->event()"); + "finish the earlier event (%s:%d) with ->event()", + event_last_passthrough->source_filename, + event_last_passthrough->source_linenum); } struct event *event = event_create(parent, source_filename, source_linenum);