Forgot to commit this too, was not freeing.
Showing
1 changed file
with
1 additions
and
2 deletions
... | @@ -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 * | ... | ... |
-
Please register or sign in to post a comment