]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: If passthrough event is leaked, include in the panic message where it was created at
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 30 Jan 2026 18:22:10 +0000 (20:22 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Tue, 3 Feb 2026 06:05:06 +0000 (06:05 +0000)
src/lib/lib-event.c

index 1876d690c7714a683063651ca48b3d5ee3a21cc6..30c4c687a3177925da6fe5c91036a62bb97394fb 100644 (file)
@@ -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);