[PATCH 0/2] Use g_autofree annotatins instead of VIR_FREE

2024-03-18 Thread Karim Taha
Substitute VIR_FREE with g_autofree annotations in openvz_driver.c and 
node_device_driver.c whenever possible.

The remaining instances of VIR_FREE are used to free return values
in case of error.

Kariiem (2):
  openvz_driver: use g_autofree instead of VIR_FREE in openvz_driver.c
  node_device: use g_autofree instead of VIR_FREE in
node_device_driver.c

 src/node_device/node_device_driver.c |  4 +---
 src/openvz/openvz_driver.c   | 15 ---
 2 files changed, 5 insertions(+), 14 deletions(-)

-- 
2.44.0
___
Devel mailing list -- devel@lists.libvirt.org
To unsubscribe send an email to devel-le...@lists.libvirt.org


[PATCH 0/2] Use g_autofree annotatins instead of VIR_FREE

2024-03-18 Thread Karim Taha
Substitute VIR_FREE with g_autofree annotations in openvz_driver.c and
node_device_driver.c whenever possible.

The remaining instances of VIR_FREE are used to free return values
in case of error.

Kariiem (2):
  openvz_driver: use g_autofree instead of VIR_FREE in openvz_driver.c
  node_device: use g_autofree instead of VIR_FREE in
node_device_driver.c

 src/node_device/node_device_driver.c |  4 +---
 src/openvz/openvz_driver.c   | 15 ---
 2 files changed, 5 insertions(+), 14 deletions(-)

-- 
2.44.0
___
Devel mailing list -- devel@lists.libvirt.org
To unsubscribe send an email to devel-le...@lists.libvirt.org


Re: [PATCH 0/2] Use g_autofree annotatins instead of VIR_FREE

2024-03-19 Thread Michal Prívozník
On 3/17/24 16:19, Karim Taha wrote:
> Substitute VIR_FREE with g_autofree annotations in openvz_driver.c and
> node_device_driver.c whenever possible.
> 
> The remaining instances of VIR_FREE are used to free return values
> in case of error.
> 
> Kariiem (2):
>   openvz_driver: use g_autofree instead of VIR_FREE in openvz_driver.c
>   node_device: use g_autofree instead of VIR_FREE in
> node_device_driver.c
> 
>  src/node_device/node_device_driver.c |  4 +---
>  src/openvz/openvz_driver.c   | 15 ---
>  2 files changed, 5 insertions(+), 14 deletions(-)
> 

Reviewed-by: Michal Privoznik 

and merged. Congratulations on your first libvirt contribution!

Michal
___
Devel mailing list -- devel@lists.libvirt.org
To unsubscribe send an email to devel-le...@lists.libvirt.org