aboutsummaryrefslogtreecommitdiff
path: root/contrib/sendmail/libmilter/docs
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2025-12-14 13:16:22 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2025-12-14 13:16:37 +0000
commit026d962ef14dafe19fa73361bea6dcc95f141dfa (patch)
tree1c1639349fcbdf921be70ed079934dfa19555ffd /contrib/sendmail/libmilter/docs
parentd4f25d0c7957f0f1960028eec82625c2d6405537 (diff)
proc: Fix proc_init / proc_dtor ordering issuesHEADmain
* Move the initialization of p_ktr into proc_init() and make the check in proc_dtor() unconditional. Prior to this, it was possible to fail and invoke proc_dtor() after the first thread had been created (which was the condition for checking p_ktr in proc_dtor()) but before p_ktr had been initialized. * Move the p_klist initialization in fork1() past the last possible failure point so we don't have to free it on failure. We didn't, which meant we were leaking a knlist every time we failed to fork due to hitting the resource limit. PR: 291470 MFC after: 1 week Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D54215
Diffstat (limited to 'contrib/sendmail/libmilter/docs')
0 files changed, 0 insertions, 0 deletions