Skip to content

Commit

Permalink
imap/sync_support.c:sync_apply_seen() - memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
dilyanpalauzov committed Aug 19, 2023
1 parent bb6a880 commit f8dbaf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imap/sync_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -3932,10 +3932,10 @@ int sync_apply_seen(struct dlist *kin,
return IMAP_PROTOCOL_BAD_PARAMETERS;
if (!dlist_getatom(kin, "SEENUIDS", &seenuids))
return IMAP_PROTOCOL_BAD_PARAMETERS;
sd.seenuids = xstrdup(seenuids);

r = seen_open(userid, SEEN_CREATE, &seendb);
if (r) return r;
sd.seenuids = xstrdup(seenuids);

r = seen_write(seendb, uniqueid, &sd);
seen_close(&seendb);
Expand Down

0 comments on commit f8dbaf7

Please sign in to comment.