[PATCH 2/2] node_device: use g_autofree instead of VIR_FREE in node_device_driver.c

2024-03-18 Thread Karim Taha
Signed-off-by: Karim Taha --- src/node_device/node_device_driver.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/node_device/node_device_driver.c b/src/node_device/node_device_driver.c index ce42b1ca63..d99b48138e 100644 --- a/src/node_device/node_device_driver.c

[PATCH 1/2] openvz_driver: use g_autofree instead of VIR_FREE in openvz_driver.c

2024-03-18 Thread Karim Taha
Signed-off-by: Karim Taha --- src/openvz/openvz_driver.c | 15 --- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/openvz/openvz_driver.c b/src/openvz/openvz_driver.c index 1bd96dfb56..fd3c25a393 100644 --- a/src/openvz/openvz_driver.c +++ b/src/openvz

[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:

[PATCH 2/2] node_device: use g_autofree instead of VIR_FREE in node_device_driver.c

2024-03-18 Thread Karim Taha
Signed-off-by: Karim Taha --- src/node_device/node_device_driver.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/node_device/node_device_driver.c b/src/node_device/node_device_driver.c index ce42b1ca63..d99b48138e 100644 --- a/src/node_device/node_device_driver.c

[PATCH 1/2] openvz_driver: use g_autofree instead of VIR_FREE in openvz_driver.c

2024-03-18 Thread Karim Taha
Signed-off-by: Karim Taha --- src/openvz/openvz_driver.c | 15 --- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/openvz/openvz_driver.c b/src/openvz/openvz_driver.c index 1bd96dfb56..fd3c25a393 100644 --- a/src/openvz/openvz_driver.c +++ b/src/openvz

[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:

[PATCH 2/2] node_device: use g_autofree instead of VIR_FREE in node_device_driver.c

2024-03-18 Thread Karim Taha
From: Kariiem Signed-off-by: Karim Taha --- src/node_device/node_device_driver.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/node_device/node_device_driver.c b/src/node_device/node_device_driver.c index ce42b1ca63..d99b48138e 100644 --- a/src/node_device

[PATCH 1/2] openvz_driver: use g_autofree instead of VIR_FREE in openvz_driver.c

2024-03-18 Thread Karim Taha
From: Kariiem Signed-off-by: Karim Taha --- src/openvz/openvz_driver.c | 15 --- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/openvz/openvz_driver.c b/src/openvz/openvz_driver.c index 1bd96dfb56..fd3c25a393 100644 --- a/src/openvz/openvz_driver.c +++ b/src

[PATCH 0/2] Use g_autofree instead of VIR_FREE

2024-03-18 Thread Karim Taha
Substiute VIR_FREE with g_autofree annotations in openvz_driver.c and node_device_driver.c, whenever possbile. The remaining instances cannot be changed, they 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