Skip to content

Commit

Permalink
jmap_mailbox:_mboxquery_cb() memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
dilyanpalauzov committed Aug 21, 2023
1 parent 2fffdc5 commit 50aa6c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion imap/jmap_mailbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -1257,9 +1257,10 @@ static int _mboxquery_cb(const mbentry_t *mbentry, void *rock)
mbentry_t *mbparent = NULL;
r = _findparent(mbentry->name, &mbparent);
if (r && r != IMAP_MAILBOX_NONEXISTENT) {
free(rec);
goto done;
}
else if (!r) {
if (!r) {
rec->parent_id = xstrdup(mbparent->uniqueid);
}
mboxlist_entry_free(&mbparent);
Expand Down

0 comments on commit 50aa6c6

Please sign in to comment.