projects
/
platform
/
upstream
/
multipath-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d431ffa
)
[lib] Memory leak when deleting and re-adding device-mapper entries.
author
Konrad Rzeszutek
<konrad@virtualiron.com>
Wed, 17 Dec 2008 22:24:40 +0000
(23:24 +0100)
committer
Christophe Varoqui
<christophe.varoqui@free.fr>
Wed, 17 Dec 2008 22:24:40 +0000
(23:24 +0100)
If we remove a map (with configuration details specified in the multipath.conf file)
and later re-add it, the pointer to the config is over-written without first
de-allocating the values.
libmultipath/configure.c
patch
|
blob
|
history
diff --git
a/libmultipath/configure.c
b/libmultipath/configure.c
index
285a8a2
..
83ee0ae
100644
(file)
--- a/
libmultipath/configure.c
+++ b/
libmultipath/configure.c
@@
-50,6
+50,11
@@
setup_map (struct multipath * mpp)
}
/*
+ * free features, selector, and hwhandler properties if they are being reused
+ */
+ free_multipath_attributes(mpp);
+
+ /*
* properties selectors
*/
select_pgfailback(mpp);