Browse Source

free memory for uci hooks

Felix Fietkau 12 years ago
parent
commit
e7e26e7507
1 changed files with 1 additions and 0 deletions
  1. 1 0
      libuci.c

+ 1 - 0
libuci.c

@@ -325,6 +325,7 @@ int uci_remove_hook(struct uci_context *ctx, const struct uci_hook_ops *ops)
 		struct uci_hook *h = uci_to_hook(e);
 		if (h->ops == ops) {
 			uci_list_del(&e->list);
+			uci_free_element(e);
 			return 0;
 		}
 	}