summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2013-06-11 11:12:27 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2013-06-11 11:23:12 +0100
commit2a12fc81e1f6663d7df8c920de76a27dec8ce119 (patch)
tree38be570b64bdd489bcc2ccbfad90d9d79d564007 /src
parentffcca777ed6b3ca228c1cd0d222af63cec546e65 (diff)
downloadeina-2a12fc81e1f6663d7df8c920de76a27dec8ce119.tar.gz
eina_xattr: Backport memory leak fix.
Backport of 6467f603955bdea591d2f9a5d0c8e058dbbc94a7 / svn rev 83791 In the error case we freed the iterator but not the attribute.
Diffstat (limited to 'src')
-rw-r--r--src/lib/eina_xattr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/eina_xattr.c b/src/lib/eina_xattr.c
index d4ed139..5315cac 100644
--- a/src/lib/eina_xattr.c
+++ b/src/lib/eina_xattr.c
@@ -306,6 +306,7 @@ 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;
}