1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-22 17:34:18 +03:00
libvirt/scripts
Pino Toscano 8508799f2d esx: generator: fix free of elements in lists
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 5cff36e39a and
f76c6dde2e.

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
2020-09-14 10:21:23 +02:00
..
apibuild.py tests: Add simple test for virDomainMigrateCheckNotLocal 2020-09-04 10:20:49 +02:00
augeas-gentest.py build: only support python3 binary 2019-12-04 13:13:01 +00:00
check-aclperms.py build: only support python3 binary 2019-12-04 13:13:01 +00:00
check-aclrules.py scripts: remove use of the term 'whitelist' from build helpers 2020-06-26 15:36:40 +01:00
check-driverimpls.py build: only support python3 binary 2019-12-04 13:13:01 +00:00
check-drivername.py libvirt: add stateShutdownPrepare/stateShutdownWait to drivers 2020-09-07 09:33:58 +03:00
check-file-access.py meson: tests: add file access test setup 2020-08-03 09:27:06 +02:00
check-remote-protocol.py meson: src: add check*protocol tests 2020-08-03 09:27:05 +02:00
check-symfile.py build: only support python3 binary 2019-12-04 13:13:01 +00:00
check-symsorting.py build: only support python3 binary 2019-12-04 13:13:01 +00:00
cocci-macro-file.h scripts: introduce a macro file for coccinelle 2019-10-21 12:51:54 +02:00
dtrace2systemtap.py build: only support python3 binary 2019-12-04 13:13:01 +00:00
esx_vi_generator.py esx: generator: fix free of elements in lists 2020-09-14 10:21:23 +02:00
genaclperms.py docs: rewrite polkit docs generator in Python 2019-12-20 14:23:40 +00:00
genpolkit.py build: only support python3 binary 2019-12-04 13:13:01 +00:00
gensystemtap.py build: only support python3 binary 2019-12-04 13:13:01 +00:00
group-qemu-caps.py tests: rewrite qemu capability grouper in Python 2019-12-20 14:23:39 +00:00
header-ifdef.py build: only support python3 binary 2019-12-04 13:13:01 +00:00
hvsupport.py docs: rewrite hvsupport.html page generator in python 2019-12-20 14:23:39 +00:00
hyperv_wmi_generator.py meson: src: build libvirt_driver_hyperv.a static library 2020-08-03 09:27:04 +02:00
meson-dist.py meson: generate and distribute spec files and AUTHORS 2020-08-03 09:27:06 +02:00
meson-gen-authors.py AUTHORS: Convert to reStructuredText 2020-09-02 13:20:03 +02:00
meson-gen-def.py meson: scripts: introduce meson-gen-def.py script 2020-08-03 09:27:04 +02:00
meson-gen-sym.py meson: scripts: introduce meson-gen-sym.py script 2020-08-03 09:27:04 +02:00
meson-html-gen.py docs: fix libvirt go-import metadata in pages and links in 404 page 2020-08-04 17:06:33 +01:00
meson-install-dirs.py meson: src: install empty directories 2020-08-03 09:27:05 +02:00
meson-install-symlink.py scripts: Fix meson-install-symlink.py overwriting existing links 2020-08-05 13:11:16 +02:00
meson-install-web.py meson: add rule to build and install only web documentation 2020-08-03 09:27:06 +02:00
meson-python.sh meson: add runutf8 env vars and meson-python.sh script 2020-08-03 09:27:00 +02:00
meson-timestamp.py meson: docs: generate docs timestamp 2020-08-03 09:27:06 +02:00
meson.build meson: add rule to build and install only web documentation 2020-08-03 09:27:06 +02:00
mock-noinline.py src: add G_GNUC_NO_INLINE annotations for mocked symbols 2020-08-04 17:58:08 +01:00
prohibit-duplicate-header.py build: only support python3 binary 2019-12-04 13:13:01 +00:00
test-wrap-argv.py tests: rewrite test argv line wrapper in Python 2019-12-04 13:44:15 +00:00