Re: git: 8bae22bbbe65 - main - fusefs: prefer new/delete over malloc/free

From: Alan Somers <asomers_at_freebsd.org>
Date: Fri, 19 Jan 2024 13:56:13 UTC
On Thu, Jan 18, 2024 at 10:32 PM Enji Cooper <yaneurabeya@gmail.com> wrote:
>
>
> > On Jan 17, 2024, at 2:50 PM, Alan Somers <asomers@FreeBSD.org> wrote:
> >
> > The branch main has been updated by asomers:
> >
> > URL: https://cgit.FreeBSD.org/src/commit/?id=8bae22bbbe6571da9259e0d43ffa8a56f4b3e171
> >
> > commit 8bae22bbbe6571da9259e0d43ffa8a56f4b3e171
> > Author:     Alan Somers <asomers@FreeBSD.org>
> > AuthorDate: 2024-01-15 23:49:47 +0000
> > Commit:     Alan Somers <asomers@FreeBSD.org>
> > 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.