-
Notifications
You must be signed in to change notification settings - Fork 24.5k
Closed
Description
Hi,
reported two places might invoke twice of fclose, aof.c#L1211 and rdb.c#L1008,
they are similar as followed:
if (fclose(fp) == EOF) goto werr;
........
werr:
.......
fclose(fp);
........while invoking twice of fclose is undefined behavior, you might want to take a look. (reference to the RETURN VALUE part of https://linux.die.net/man/3/fclose)
Regards,
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels