tools/virtiofsd/fuse_opt.c: Replaced a malloc with GLib's g_try_malloc
commitbf99f30bc3420f2f4b82f7f827fb93197d33c017
authorMahmoud Mandour <ma.mandourr@gmail.com>
Sun, 14 Mar 2021 03:23:23 +0000 (14 05:23 +0200)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 26 May 2021 17:39:32 +0000 (26 18:39 +0100)
treea3ab546806bd4c37b52d6427cbc70e0cdc32e748
parentd14d4f4f1815dcf63fa6b90e9a34854977e42f84
tools/virtiofsd/fuse_opt.c: Replaced a malloc with GLib's g_try_malloc

Replaced a malloc() call and its respective free() with
GLib's g_try_malloc() and g_free() calls.

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