cronie-crond / cronie

Cronie cron daemon project
Other
453 stars 77 forks source link

Do not leak file descriptors in backup_crontab #184

Closed khardix closed 3 weeks ago

khardix commented 4 weeks 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 3 weeks ago

Updated with the requested changes.

t8m commented 3 weeks ago

Merged. Thank you for your contribution.