Skip to content

Commit

Permalink
ctl_conversationsdb.c:do_zeromodseq() memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
dilyanpalauzov committed Jan 22, 2025
1 parent 025c3ff commit 51d7fff
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions imap/ctl_conversationsdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,14 +279,13 @@ static int zero_modseq_cb(const mbentry_t *mbentry,
static int do_zeromodseq(const char *userid)
{
imaply_strict = 0;
char *inboxname = mboxname_user_mbox(userid, NULL);
struct conversations_state *state = NULL;
struct quota q;
struct txn *txn = NULL;
int r = 0;

r = conversations_open_user(userid, 0/*shared*/, &state);
int r = conversations_open_user(userid, 0/*shared*/, &state);
if (r) return r;
char *inboxname = mboxname_user_mbox(userid, NULL);

r = mboxlist_usermboxtree(userid, NULL, zero_modseq_cb, NULL, 0);
if (r) goto done;
Expand Down

0 comments on commit 51d7fff

Please sign in to comment.