OSDN Git Service

virtiofsd: Changed allocations of fuse_req to GLib functions
authorMahmoud Mandour <ma.mandourr@gmail.com>
Tue, 20 Apr 2021 15:46:36 +0000 (17:46 +0200)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 6 May 2021 18:47:44 +0000 (19:47 +0100)
commit98bbd186ed49ead7419ca9d9f2915c7cc1dd0083
tree43db63f9fa01cccb2fa64140a45c6584592fec6c
parent5bf5188a116a4b7663662b1f19b2fe91ff0b5974
virtiofsd: Changed allocations of fuse_req to GLib functions

Replaced the allocation and deallocation of fuse_req structs
using calloc()/free() call pairs to a GLib's g_try_new0()
and g_free().

Signed-off-by: Mahmoud Mandour <ma.mandourr@gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20210420154643.58439-2-ma.mandourr@gmail.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
tools/virtiofsd/fuse_lowlevel.c