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,6 +323,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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue