Commit 144b407d 144b407d429611399f4c5abed827dd73091cb693 by Alain Magloire

Forgot to commit this too, was not freeing.

1 parent d7eacb96
......@@ -45,12 +45,11 @@ attribute_destroy (attribute_t *pattr, void *owner)
if (pattr && *pattr)
{
attribute_t attr = *pattr;
if (attr->owner != owner)
if (attr->owner == owner)
free (*pattr);
/* loose the link */
*pattr = NULL;
}
return;
}
void *
......