file: uci_file_commit: fix memory leak
[project/uci.git] / uci_internal.h
index db8cc30128aab79d181381f3b20a41a7ea43b5e5..f00b394972fad870c34e0e445b239b2c2e228be1 100644 (file)
@@ -61,7 +61,6 @@ __private void uci_alloc_parse_context(struct uci_context *ctx);
 
 __private void uci_cleanup(struct uci_context *ctx);
 __private struct uci_element *uci_lookup_list(struct uci_list *list, const char *name);
-__private void uci_fixup_section(struct uci_context *ctx, struct uci_section *s);
 __private void uci_free_package(struct uci_package **package);
 __private struct uci_element *uci_alloc_generic(struct uci_context *ctx, int type, const char *name, int size);
 __private void uci_free_element(struct uci_element *e);
@@ -216,7 +215,7 @@ struct uci_backend _var = {         \
                ctx->err = __val;       \
                memcpy(ctx->trap, __old_trap, sizeof(ctx->trap)); \
                goto handler;           \
-       }
+       } while(0)
 #define UCI_TRAP_RESTORE(ctx)          \
        memcpy(ctx->trap, __old_trap, sizeof(ctx->trap)); \
 } while(0)