summaryrefslogtreecommitdiff
path: root/multipathd
diff options
context:
space:
mode:
authorKonrad Rzeszutek <konrad@virtualiron.com>2009-03-24 19:01:05 +0100
committerChristophe Varoqui <christophe.varoqui@free.fr>2009-03-24 19:01:05 +0100
commit44b2aa361126fe03e0a2a9dac5ccb9d69ac2c13a (patch)
treeb9e3ecc621610f543685930bf70827d2e87b0e47 /multipathd
parenta403f57b991f3be7c7ea6250d95fad1554c9d6ca (diff)
downloadmultipath-tools-44b2aa361126fe03e0a2a9dac5ccb9d69ac2c13a.tar.gz
multipath-tools-44b2aa361126fe03e0a2a9dac5ccb9d69ac2c13a.tar.bz2
multipath-tools-44b2aa361126fe03e0a2a9dac5ccb9d69ac2c13a.zip
Unload prio and checkers libraries during shutdown.
Our statup sequence is 'load_config', 'init_checkers', and 'init_prio'. Both init_* functions reset the list of prio and checkers, which is unfortunate as in load_config, depending on the multipat.conf, would load prio and checker libraries. This results in double-loading of the libraries and a memory leak.
Diffstat (limited to 'multipathd')
-rw-r--r--multipathd/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/multipathd/main.c b/multipathd/main.c
index 7d2316a..996bd9d 100644
--- a/multipathd/main.c
+++ b/multipathd/main.c
@@ -1395,6 +1395,8 @@ child (void * param)
dm_lib_release();
dm_lib_exit();
+ cleanup_prio();
+ cleanup_checkers();
/*
* Freeing config must be done after condlog() and dm_lib_exit(),
* because logging functions like dlog() and dm_write_log()