On a Monday in 2020, Peter Krempa wrote:
Using a doulble pointer prevents the function from being used as the
*double
automatic cleanup function for the given type.
Remove the double pointer use by replacing the calls with
g_clear_pointer which ensures that the pointer is cleared.
Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
src/qemu/qemu_domain.c | 30 +++++++++++++-----------------
src/qemu/qemu_domain.h | 2 +-
src/qemu/qemu_migration_params.c | 2 +-
3 files changed, 15 insertions(+), 19 deletions(-)
Reviewed-by: Ján Tomko <jtomko(a)redhat.com>
Jano