libvirt/src/nwfilter
Tim Wiederhake c11fb2132f nwfilterStateInitialize: Simplify and fix error handling
Under certain circumstances nwfilterStateInitialize could leak memory:
If e.g. the call to virNWFilterConfLayerInit fails, the error path
err_techdrivers_shutdown does not free the previously allocated memory
held in driver->stateDir.

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2022-04-08 16:43:16 +02:00
..
xml example: add ipv6 filters examples 2020-11-04 17:21:45 +01:00
meson.build meson: Add missing virt_install_dirs 2022-02-02 16:26:36 +01:00
nwfilter_dhcpsnoop.c virNWFilterSnoopState: Prevent mutex leak 2022-04-08 16:43:16 +02:00
nwfilter_dhcpsnoop.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
nwfilter_driver.c nwfilterStateInitialize: Simplify and fix error handling 2022-04-08 16:43:16 +02:00
nwfilter_driver.h src/nwfilter: use #pragma once in headers 2019-06-19 17:12:30 +02:00
nwfilter_ebiptables_driver.c nwfilter: drop support for legacy iptables conntrack direction 2022-03-09 11:37:32 +00:00
nwfilter_ebiptables_driver.h src/nwfilter: use #pragma once in headers 2019-06-19 17:12:30 +02:00
nwfilter_gentech_driver.c nwfilter: merge updateMutex and updateLock 2022-03-22 10:19:31 +00:00
nwfilter_gentech_driver.h nwfilter: make some gentech driver methods static 2022-03-08 12:19:56 +00:00
nwfilter_learnipaddr.c virNWFilterLockIface: Preserve correct lock ordering 2022-03-18 17:45:17 +01:00
nwfilter_learnipaddr.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
nwfilter_tech_driver.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
virtnwfilterd.init.in configure: Provide OpenRC scripts for sub-daemons 2019-12-16 10:11:22 +01:00
virtnwfilterd.service.in systemd: Use correct man page name in modular daemon service files 2022-02-01 13:20:11 +01:00