Re: [PATCH v3 2/7] virtiofsd: Changed allocations of iovec to GLib's functions

2021-05-06 Thread Dr. David Alan Gilbert
* Mahmoud Mandour (ma.mando...@gmail.com) wrote: > 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 o

[PATCH v3 2/7] virtiofsd: Changed allocations of iovec to GLib's functions

2021-04-27 Thread Mahmoud Mandour
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_n