Skip to content

Commit 1724302

Browse files
committed
Fix heap-use-after-free (noticed by libasan)
1 parent 2604af9 commit 1724302

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/parse.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2378,6 +2378,7 @@ int parsemail(char *mbox, /* file name */
23782378
#endif
23792379
if (charset) {
23802380
free(charset);
2381+
charset = NULL;
23812382
}
23822383
charsetsave[0] = '\0';
23832384

0 commit comments

Comments
 (0)