mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
8508799f2d
When a list is freed, we iterate through all the items, invoking the free function for each; the actual free function called for each element is the function of the actual type of each element, and thus the @_next pointer in the element struct has the same type as the element itself. Currently, the free function gets the parent of the current element type, and invoke its free function to continue freeing the list. However, in case the hierarchy of the classes has more than 1 level (i.e. Class <- SubClass <- SubSubClass), the invoked free function is only the parent class' one, and not the actual base class of the hierarchy. To fix that, change the generator to get the base class of a class, and invoking that instead. Also, avoid to set the @_next back, as it is not needed. Fixes commits |
||
---|---|---|
.. | ||
apibuild.py | ||
augeas-gentest.py | ||
check-aclperms.py | ||
check-aclrules.py | ||
check-driverimpls.py | ||
check-drivername.py | ||
check-file-access.py | ||
check-remote-protocol.py | ||
check-symfile.py | ||
check-symsorting.py | ||
cocci-macro-file.h | ||
dtrace2systemtap.py | ||
esx_vi_generator.py | ||
genaclperms.py | ||
genpolkit.py | ||
gensystemtap.py | ||
group-qemu-caps.py | ||
header-ifdef.py | ||
hvsupport.py | ||
hyperv_wmi_generator.py | ||
meson-dist.py | ||
meson-gen-authors.py | ||
meson-gen-def.py | ||
meson-gen-sym.py | ||
meson-html-gen.py | ||
meson-install-dirs.py | ||
meson-install-symlink.py | ||
meson-install-web.py | ||
meson-python.sh | ||
meson-timestamp.py | ||
meson.build | ||
mock-noinline.py | ||
prohibit-duplicate-header.py | ||
test-wrap-argv.py |