forked from enlightenment/efl
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:
parent
c24aaf9bd0
commit
6467f60395
|
@ -323,8 +323,9 @@ eina_xattr_value_ls(const char *file)
|
||||||
it->length = listxattr(file, it->xattr, length);
|
it->length = listxattr(file, it->xattr, length);
|
||||||
if (it->length != length)
|
if (it->length != length)
|
||||||
{
|
{
|
||||||
|
free(it->attr);
|
||||||
free(it);
|
free(it);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
it->file = eina_stringshare_add(file);
|
it->file = eina_stringshare_add(file);
|
||||||
|
|
Loading…
Reference in New Issue