On Thu, Jan 18, 2024 at 10:32 PM Enji Cooper <[email protected]> wrote: > > > > On Jan 17, 2024, at 2:50 PM, Alan Somers <[email protected]> wrote: > > > > The branch main has been updated by asomers: > > > > URL: > > https://cgit.FreeBSD.org/src/commit/?id=8bae22bbbe6571da9259e0d43ffa8a56f4b3e171 > > > > commit 8bae22bbbe6571da9259e0d43ffa8a56f4b3e171 > > Author: Alan Somers <[email protected]> > > AuthorDate: 2024-01-15 23:49:47 +0000 > > Commit: Alan Somers <[email protected]> > > CommitDate: 2024-01-17 22:49:41 +0000 > > > > fusefs: prefer new/delete over malloc/free > > > > MFC after: 2 weeks > > Reviewed by: kib > > Differential Revision: https://reviews.freebsd.org/D43464 > > Why not use smart pointers instead? > -Enji
Only because this stuff all evolved from C code. Smart pointers would certainly work.
