X-Git-Url: http://git.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=libuci.c;fp=libuci.c;h=995d39dad7fdf952eec0aa49b6af92cfcb5ff8cc;hp=c6d9992bb78f3d9ebd79e70ebd393d52d5720764;hb=e7e26e750772259ae89558277a7ecec01feb24fa;hpb=e7fa4a3ed877978a95c25605aa5f1a8beb35b573 diff --git a/libuci.c b/libuci.c index c6d9992..995d39d 100644 --- a/libuci.c +++ b/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; } }