summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@datenfreihafen.org>2013-02-08 15:49:59 +0000
committerStefan Schmidt <stefan@datenfreihafen.org>2013-02-08 15:49:59 +0000
commit6467f603955bdea591d2f9a5d0c8e058dbbc94a7 (patch)
treea7289eace04d7642b834208d8de3c845f035e1be
parentc24aaf9bd018d8933fce23781b286e99f46dc581 (diff)
efl/eina_xattr: Fix memory leak in eina_xattr_value_ls.
In the error case we freed the iterator but not the attribute. SVN revision: 83791
Diffstat (limited to '')
-rw-r--r--src/lib/eina/eina_xattr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/eina/eina_xattr.c b/src/lib/eina/eina_xattr.c
index a8521da58f..d5e6970840 100644
--- 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)
323 it->length = listxattr(file, it->xattr, length); 323 it->length = listxattr(file, it->xattr, length);
324 if (it->length != length) 324 if (it->length != length)
325 { 325 {
326 free(it->attr);
326 free(it); 327 free(it);
327 return NULL; 328 return NULL;
328 } 329 }
329 330
330 it->file = eina_stringshare_add(file); 331 it->file = eina_stringshare_add(file);