Skip to content

Commit

Permalink
Merge pull request #4883 from dilyanpalauzov/no_buf_free_after_buf_re…
Browse files Browse the repository at this point in the history
…lease

imap/mboxevent.c: do not call buf_free() after buf_release()
  • Loading branch information
elliefm committed Apr 9, 2024
2 parents 91e9fc7 + 90f241d commit 1bca21b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions imap/mboxevent.c
Expand Up @@ -1701,7 +1701,6 @@ EXPORTED void mboxevent_extract_mailbox(struct mboxevent *event,
imapurl_toURL(&url, &imapurl);
FILL_STRING_PARAM(event, EVENT_URI, buf_release(&url));

buf_free(&url);
free(extname);

FILL_STRING_PARAM(event, EVENT_MBTYPE,
Expand Down Expand Up @@ -1811,7 +1810,6 @@ void mboxevent_extract_old_mailbox(struct mboxevent *event,
imapurl_toURL(&url, &imapurl);
FILL_STRING_PARAM(event, EVENT_OLD_MAILBOX_ID, buf_release(&url));

buf_free(&url);
free(extname);
}

Expand Down

0 comments on commit 1bca21b

Please sign in to comment.