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:
38b7de0
)
[libmultipath] plug leak in discover.c:syfs_get_*()
author
Christophe Varoqui
<root@xa-s05.(none)>
Sat, 21 Jan 2006 10:26:58 +0000
(11:26 +0100)
committer
Christophe Varoqui
<root@xa-s05.(none)>
Sat, 21 Jan 2006 10:26:58 +0000
(11:26 +0100)
libmultipath/discovery.c
patch
|
blob
|
history
diff --git
a/libmultipath/discovery.c
b/libmultipath/discovery.c
index
27429b6
..
aa71afd
100644
(file)
--- a/
libmultipath/discovery.c
+++ b/
libmultipath/discovery.c
@@
-167,6
+167,7
@@
sysfs_get_##fname (char * sysfs_path, char * dev, char * buff, int len) \
\
strncpy(buff, attr->value, attr->len - 1); \
buff[attr->len - 1] = '\0'; \
+ sysfs_close_attribute(attr); \
return 0; \
out: \
sysfs_close_attribute(attr); \