[PATCH 02/30] qemu: Don't take double pointer in qemuDomainSecretInfoFree

Ján Tomko jtomko at redhat.com
Mon Mar 9 18:31:00 UTC 2020


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 at 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 at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20200309/e0c75932/attachment-0001.sig>


More information about the libvir-list mailing list