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:
db5bba1
)
[libmultipath] plug leaks in blacklist free_* functions
author
Christophe Varoqui
<root@xa-s05.(none)>
Sat, 21 Jan 2006 10:30:23 +0000
(11:30 +0100)
committer
Christophe Varoqui
<root@xa-s05.(none)>
Sat, 21 Jan 2006 10:30:23 +0000
(11:30 +0100)
libmultipath/blacklist.c
patch
|
blob
|
history
diff --git
a/libmultipath/blacklist.c
b/libmultipath/blacklist.c
index
8218df7
..
00fa014
100644
(file)
--- a/
libmultipath/blacklist.c
+++ b/
libmultipath/blacklist.c
@@
-162,7
+162,7
@@
free_blacklist (vector blist)
vector_foreach_slot (blist, ble, i) {
if (ble) {
-
//regfree(
ble->regex);
+
regfree(&
ble->regex);
FREE(ble->str);
FREE(ble);
}
@@
-181,6
+181,8
@@
free_blacklist_device (vector blist)
vector_foreach_slot (blist, ble, i) {
if (ble) {
+ regfree(&ble->vendor_reg);
+ regfree(&ble->product_reg);
FREE(ble->vendor);
FREE(ble->product);
FREE(ble);