diff options
author | Mahmoud Mandour | 2021-04-27 20:13:33 +0200 |
---|---|---|
committer | Dr. David Alan Gilbert | 2021-05-06 20:47:44 +0200 |
commit | 01c6c6f982196458d60d4d7cfa963c38947949f5 (patch) | |
tree | ce6d4d6d8e23e5921d1e1711cdcff32f267eedb3 /qga | |
parent | virtiofsd: Changed allocations of fuse_req to GLib functions (diff) | |
download | qemu-01c6c6f982196458d60d4d7cfa963c38947949f5.tar.gz qemu-01c6c6f982196458d60d4d7cfa963c38947949f5.tar.xz qemu-01c6c6f982196458d60d4d7cfa963c38947949f5.zip |
virtiofsd: Changed allocations of iovec to GLib's functions
Replaced the calls to malloc()/calloc() and their respective
calls to free() of iovec structs with GLib's allocation and
deallocation functions and used g_autofree when appropriate.
Replaced the allocation of in_sg_cpy to g_new() instead of a call
to calloc() and a null-checking assertion. Not g_new0()
because the buffer is immediately overwritten using memcpy.
Signed-off-by: Mahmoud Mandour <ma.mandourr@gmail.com>
Message-Id: <20210427181333.148176-1-ma.mandourr@gmail.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'qga')
0 files changed, 0 insertions, 0 deletions