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

Karim Taha posted 2 patches 1 month, 1 week ago
Failed in applying to current master (apply log)
src/node_device/node_device_driver.c |  4 +---
src/openvz/openvz_driver.c           | 15 ++++-----------
2 files changed, 5 insertions(+), 14 deletions(-)
[PATCH 0/2] Use g_autofree annotatins instead of VIR_FREE
Posted by Karim Taha 1 month, 1 week ago
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-leave@lists.libvirt.org
Re: [PATCH 0/2] Use g_autofree annotatins instead of VIR_FREE
Posted by Michal Prívozník 1 month, 1 week ago
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 <mprivozn@redhat.com>

and merged. Congratulations on your first libvirt contribution!

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