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
This commit is contained in:
Stefan Schmidt 2013-02-08 15:49:59 +00:00
parent c24aaf9bd0
commit 6467f60395
1 changed files with 2 additions and 1 deletions

View File

@ -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);