OSDN Git Service

virtiofsd: Changed allocations of fuse_session to GLib's functions
authorMahmoud Mandour <ma.mandourr@gmail.com>
Tue, 20 Apr 2021 15:46:38 +0000 (17:46 +0200)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 6 May 2021 18:47:44 +0000 (19:47 +0100)
commitf90a2d68c073c6a0a57790fae6b64eeb14ae78bb
tree306ebb589a0139a0a6e785fdd0f8a41040a8ecc1
parent01c6c6f982196458d60d4d7cfa963c38947949f5
virtiofsd: Changed allocations of fuse_session to GLib's functions

Replaced the allocation and deallocation of fuse_session structs
from calloc() and free() calls to 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-4-ma.mandourr@gmail.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
tools/virtiofsd/fuse_lowlevel.c