Skip to content

Commit

Permalink
seen_db:seen_merge_cb() memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
dilyanpalauzov committed Sep 10, 2023
1 parent 97aa651 commit 8f3291c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions imap/seen_db.c
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@ static int seen_merge_cb(void *rockp,
dirty = 1; /* no record */
}
else {
free(oldsd.seenuids);
if (newsd.lastuid > oldsd.lastuid) dirty = 1;
if (newsd.lastread > oldsd.lastread) dirty = 1;
}
Expand Down

0 comments on commit 8f3291c

Please sign in to comment.