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) ...@@ -45,12 +45,11 @@ attribute_destroy (attribute_t *pattr, void *owner)
45 if (pattr && *pattr) 45 if (pattr && *pattr)
46 { 46 {
47 attribute_t attr = *pattr; 47 attribute_t attr = *pattr;
48 if (attr->owner != owner) 48 if (attr->owner == owner)
49 free (*pattr); 49 free (*pattr);
50 /* loose the link */ 50 /* loose the link */
51 *pattr = NULL; 51 *pattr = NULL;
52 } 52 }
53 return;
54 } 53 }
55 54
56 void * 55 void *
......