projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c24aaf9
)
efl/eina_xattr: Fix memory leak in eina_xattr_value_ls.
author
Stefan Schmidt
<stefan@datenfreihafen.org>
Fri, 8 Feb 2013 15:49:59 +0000
(15:49 +0000)
committer
Stefan Schmidt
<stefan@datenfreihafen.org>
Fri, 8 Feb 2013 15:49:59 +0000
(15:49 +0000)
In the error case we freed the iterator but not the attribute.
SVN revision: 83791
src/lib/eina/eina_xattr.c
patch
|
blob
|
history
diff --git
a/src/lib/eina/eina_xattr.c
b/src/lib/eina/eina_xattr.c
index
a8521da
..
d5e6970
100644
(file)
--- a/
src/lib/eina/eina_xattr.c
+++ b/
src/lib/eina/eina_xattr.c
@@
-323,8
+323,9
@@
eina_xattr_value_ls(const char *file)
it->length = listxattr(file, it->xattr, length);
if (it->length != length)
{
+ free(it->attr);
free(it);
- return NULL;
+
return NULL;
}
it->file = eina_stringshare_add(file);