[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 8/8] virtiofsd/fuse_virtio.c: Changed allocations of locals t
From: |
Stefan Hajnoczi |
Subject: |
Re: [PATCH 8/8] virtiofsd/fuse_virtio.c: Changed allocations of locals to GLib |
Date: |
Wed, 24 Mar 2021 13:00:35 +0000 |
On Wed, Mar 24, 2021 at 7:12 AM Mahmoud Mandour <ma.mandourr@gmail.com> wrote:
>
> On Tue, Mar 23, 2021 at 4:15 PM Stefan Hajnoczi <stefanha@gmail.com> wrote:
>>
>> On Fri, Mar 19, 2021 at 03:25:27PM +0200, Mahmoud Mandour wrote:
>> > @@ -588,7 +587,7 @@ out:
>> > }
>> >
>> > pthread_mutex_destroy(&req->ch.lock);
>> > - free(fbuf.mem);
>> > + g_free(fbuf.mem);
>> > free(req);
>>
>> ^--- was FVRequest allocation changed in a previous patch?
>> Maybe an earlier patch forgot to use g_free() here.
>>
>> Aside from this:
>>
>> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
>
>
> I did not change the allocation of FVRequest. I believe that's why
> this is left unchanged.
Okay, I see it's allocated by libvhost-user and not directly by virtiofsd code.
Thanks,
Stefan
- [PATCH 3/8] virtiofsd: Changed fuse_pollhandle allocation to GLib's functions, (continued)
- [PATCH 3/8] virtiofsd: Changed fuse_pollhandle allocation to GLib's functions, Mahmoud Mandour, 2021/03/19
- [PATCH 6/8] virtiofsd: Changed allocations of fv_VuDev & its internals to GLib functions, Mahmoud Mandour, 2021/03/19
- [PATCH 7/8] virtiofsd/passthrough_ll.c: Changed local allocations to GLib functions, Mahmoud Mandour, 2021/03/19
- [PATCH 5/8] virtiofsd: Changed allocation of lo_map_elems to GLib's functions, Mahmoud Mandour, 2021/03/19
- [PATCH 8/8] virtiofsd/fuse_virtio.c: Changed allocations of locals to GLib, Mahmoud Mandour, 2021/03/19
- Re: [PATCH 0/8] virtiofsd: Changed various allocations to GLib functions, Mahmoud Mandour, 2021/03/19