[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 7/8] virtiofsd/passthrough_ll.c: Changed local allocations to
From: |
Stefan Hajnoczi |
Subject: |
Re: [PATCH 7/8] virtiofsd/passthrough_ll.c: Changed local allocations to GLib functions |
Date: |
Tue, 23 Mar 2021 14:13:28 +0000 |
On Fri, Mar 19, 2021 at 03:25:26PM +0200, Mahmoud Mandour wrote:
> Changed the allocations of some local variables to GLib's allocation
> functions, such as g_try_malloc0(), and annotated those variables
> as g_autofree. Subsequently, I was able to remove the calls to free().
>
> Signed-off-by: Mahmoud Mandour <ma.mandourr@gmail.com>
> ---
> tools/virtiofsd/passthrough_ll.c | 17 ++++++-----------
> 1 file changed, 6 insertions(+), 11 deletions(-)
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
signature.asc
Description: PGP signature
- [PATCH 2/8] virtiofds: Changed allocations of iovec to GLib's functions, (continued)
- [PATCH 2/8] virtiofds: Changed allocations of iovec to GLib's functions, Mahmoud Mandour, 2021/03/19
- [PATCH 4/8] virtiofsd: Changed allocations of fuse_session to GLib's functions, Mahmoud Mandour, 2021/03/19
- [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
- Re: [PATCH 7/8] virtiofsd/passthrough_ll.c: Changed local allocations to GLib functions,
Stefan Hajnoczi <=
- [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