~kevin8t8/mutt

b40c7f6cb852616c05a9e09d4320056e90dc89cf — Kevin McCarthy 8 days ago b67ae9c
Fix imap memory leaks.

The mx.mbox allocated by imap_parse_path() was not freed on error in a
couple places.

There is also a leak in imap_copy_message(), but this was fixed in
master in commit 1ec642e2.  I'll cherry pick that into stable.
1 files changed, 2 insertions(+), 0 deletions(-)

M imap/imap.c
M imap/imap.c => imap/imap.c +2 -0
@@ 2469,6 2469,7 @@ int imap_complete(char* dest, size_t dlen, const char* path)
    return 0;
  }

  FREE (&mx.mbox);
  return -1;
}



@@ 2503,6 2504,7 @@ int imap_fast_trash (CONTEXT* ctx, char* dest)
  {
    dprint (3, (debugfile, "imap_fast_trash: %s not same server as %s\n",
                dest, ctx->path));
    FREE (&mx.mbox);
    return 1;
  }