search for: imap_client_count

Displaying 1 result from an estimated 1 matches for "imap_client_count".

2010 Jun 14
1
Patch to fix leak in imap_refresh_proctitle in beta[5, 6]
...39,11 +39,12 @@ #define IMAP_PROCTITLE_PREFERRED_LEN 80 struct client *client; struct client_command_context *cmd; - string_t *title = t_str_new(128); + string_t *title; if (!verbose_proctitle) return; + title = str_new(default_pool, 128); str_append_c(title, '['); switch (imap_client_count) { case 0: @@ -72,6 +73,7 @@ } str_append_c(title, ']'); process_title_set(str_c(title)); + str_free(&title); } static void client_kill_idle(struct client *client) And perhaps there should be a warning when data is allocated out of the primordial data stack (as opposed to a...