[PATCH 13/23] virshGetOneDisplay: Automaticaly free extracted data

Ján Tomko jtomko at redhat.com
Wed Mar 2 15:08:16 UTC 2022

On a Wednesday in 2022, Peter Krempa wrote:
>Use automatic memory freeing for the temporary variables hodling the


>data extracted from the XML.
>The code in this function was originally extracted from a loop so we can
>also drop pre-clearing of the pointers.
>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
> tools/virsh-domain.c | 49 ++++++++++++++------------------------------
> 1 file changed, 15 insertions(+), 34 deletions(-)

Reviewed-by: Ján Tomko <jtomko at redhat.com>

-------------- 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/20220302/f8d4a03f/attachment-0001.sig>

More information about the libvir-list mailing list