cronie-crond / cronie

Cronie cron daemon project
Other
481 stars 81 forks source link

Do not leak file descriptors in backup_crontab #184

Closed khardix closed 4 months ago

khardix commented 4 months ago

Originally, if anything went wrong during the backup, the early return caused the crontab_file and possibly backup_file pointers to leak.

Issue found by static scanner.

khardix commented 4 months ago

Updated with the requested changes.

t8m commented 4 months ago

Merged. Thank you for your contribution.