]> git.ipfire.org Git - thirdparty/qemu.git/commit
tools/virtiofsd/buffer.c: replaced a calloc call with GLib's g_try_new0
authorMahmoud Mandour <ma.mandourr@gmail.com>
Sun, 14 Mar 2021 03:23:22 +0000 (05:23 +0200)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 26 May 2021 17:39:32 +0000 (18:39 +0100)
commitd14d4f4f1815dcf63fa6b90e9a34854977e42f84
tree59814c3ce6d2ab7fcb772d0720559fa7e60cbfaa
parentb5fd59cf907df7fa2272426010c4d264682347f2
tools/virtiofsd/buffer.c: replaced a calloc call with GLib's g_try_new0

Replaced a call to calloc() and its respective free() call
with GLib's g_try_new0() and g_free() calls.

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