From 24feba20337274a86d51700fa0e8f56ce378c902 Mon Sep 17 00:00:00 2001 From: Matthew Loper Date: Thu, 17 Aug 2000 14:19:02 +0000 Subject: Whole buncha leak fixes thanks to Purify svn path=/trunk/; revision=4862 --- mail/mail-threads.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'mail/mail-threads.c') diff --git a/mail/mail-threads.c b/mail/mail-threads.c index cf3528dfb1..8fe170eea2 100644 --- a/mail/mail-threads.c +++ b/mail/mail-threads.c @@ -300,6 +300,11 @@ mail_operation_queue (const mail_operation_spec * spec, gpointer input, } /* else add self to queue */ write (DISPATCH_WRITER, clur, sizeof (closure_t)); + /* dispatch allocates a separate buffer + * to hold the closure; it's in the pipe and + * can safely be freed + */ + g_free (clur); queue_len++; return TRUE; } @@ -865,7 +870,7 @@ get_password (com_msg_t * msg) if (button == 1 || *(msg->reply) == NULL) { *(msg->success) = FALSE; *(msg->reply) = g_strdup (_("User cancelled query.")); - } else if (button > 0) { + } else if (button >= 0) { *(msg->success) = TRUE; } -- cgit v1.2.3