Ping... 在 2023/1/10 19:29, Jiang Jiacheng 写道: > Define and use g_autoptr() for virNWFilterDef and virNWFilterRuleDef, > and remove unnecessary label/variable. > > Those patches are followup with: > https://gitlab.com/libvirt/libvirt/-/commit/a9027d447be789cd11c0aa18ceb83ed79f677f86 > > diff to v1: > * drop two changes that may cause memory leaks in > 'nwfilterDefineXMLFlags' and 'virNWFilterObjListLoadConfig' > > Jiang Jiacheng (2): > conf: define g_autoptr for virNWFilterDef and virNWFilterRuleDef > src/tests: use g_autoptr for virNWFilterDef and virNWFilterRuleDef > > src/conf/nwfilter_conf.c | 44 +++++++++++++++---------------------- > src/conf/nwfilter_conf.h | 2 ++ > tests/nwfilterxml2xmltest.c | 22 +++++++------------ > 3 files changed, 28 insertions(+), 40 deletions(-) >