X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=libuci.c;h=66e6d23860fd57559d1f3606803fa512c36ba6ce;hp=fd8f30c26aec2375d1e5bcc720e473c54d4070e8;hb=cf66ea9067d3e9ffe77f42723c5b2f9d38b05ecf;hpb=65e2c3559b451315935f9483c5f4e59d63441e54 diff --git a/libuci.c b/libuci.c index fd8f30c..66e6d23 100644 --- a/libuci.c +++ b/libuci.c @@ -71,6 +71,7 @@ void uci_free_context(struct uci_context *ctx) free(ctx->savedir); UCI_TRAP_SAVE(ctx, ignore); + ctx->internal = true; uci_cleanup(ctx); uci_foreach_element_safe(&ctx->root, tmp, e) { struct uci_package *p = uci_to_package(e);