[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-mailutils] Re: crash in imap4d/auth_gsasl.c:66 gsasl_replace_stream

From: Simon Josefsson
Subject: [bug-mailutils] Re: crash in imap4d/auth_gsasl.c:66 gsasl_replace_streams
Date: Wed, 17 Mar 2010 17:16:48 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)

Simon Josefsson <address@hidden> writes:

> Hi, I'm testing latest mailutils from git and I'm getting a crash
> (double free) after successful login in this function:
> int
> gsasl_replace_streams (void *self, void *data)
> {
>   mu_stream_t *s = data;
>   util_set_input (s[0]);
>   util_set_output (s[1]);
>   free (s);
>   util_event_remove (self);
>   free (self);
>   return 0;
> }
> Reading some git log suggests mu_list_remove was recently modified to
> deallocate memory, maybe it is related?  In that case, it seems the
> first 'free' above should be removed.  This solves the problem for me,
> but I'm not sure if I introduce a memory leak.

Sorry, I meant s/first/second/.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]