Re: [PATCH] capabilities: use g_autofree in capabilities.c

2022-10-11 Thread Jiang Jiacheng
Thanks for your review. So, it's may be better to don's use g_autofree if its content need to be freed manualy in cleanup? A similiar situation could be found in nwfilter_ebiptables_driver.c, function 'ebiptablesApplyNewRules' assigned subchains with g_autofree and freed its content using g_free i

Re: [PATCH] capabilities: use g_autofree in capabilities.c

2022-10-11 Thread Ján Tomko
On a Monday in 2022, Jiang Jiacheng wrote: Use g_autofree in capabilities.c for some pointers still using manual cleanup, and remove unnecessary cleanup. Signed-off-by: Jiang Jiacheng --- src/conf/capabilities.c | 44 + 1 file changed, 14 insertions(+), 30

[PATCH] capabilities: use g_autofree in capabilities.c

2022-10-10 Thread Jiang Jiacheng
Use g_autofree in capabilities.c for some pointers still using manual cleanup, and remove unnecessary cleanup. Signed-off-by: Jiang Jiacheng --- src/conf/capabilities.c | 44 + 1 file changed, 14 insertions(+), 30 deletions(-) diff --git a/src/conf/capabi