
9 Mar
2020
9 Mar
'20
2:31 p.m.
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@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@redhat.com> Jano