Skip to content

Commit

Permalink
ctl_mboxlist.c: don't free static memory
Browse files Browse the repository at this point in the history
backport of 3be3f16
  • Loading branch information
ksmurchison authored and dilyanpalauzov committed Sep 4, 2023
1 parent d2600b6 commit d37f515
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions imap/ctl_mboxlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -993,8 +993,6 @@ static void add_part(ptrarray_t *found,
/* found it */
if (override) {
/* replace the path with the one containing cyrus.header */
if (entry->path)
free(entry->path);
strcpy(entry->path, path);
}

Expand Down

0 comments on commit d37f515

Please sign in to comment.