Re: [RFC PATCH v1 4/8] vfio-ccw: Refactor cleanup of regions

2019-11-20 Thread Cornelia Huck
On Fri, 15 Nov 2019 04:34:33 +0100 Eric Farman wrote: > While we're at it, add a g_free() for the async_cmd_region that > is the last thing currently created. g_free() knows how to handle > NULL pointers, so this makes it easier to remember what cleanups > need to be performed when new regions a

[RFC PATCH v1 4/8] vfio-ccw: Refactor cleanup of regions

2019-11-14 Thread Eric Farman
While we're at it, add a g_free() for the async_cmd_region that is the last thing currently created. g_free() knows how to handle NULL pointers, so this makes it easier to remember what cleanups need to be performed when new regions are added. Signed-off-by: Eric Farman --- hw/vfio/ccw.c | 14 +