From 6e141df7e2a603fcfced2f020e8964492c34a307 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 23 Jan 2008 02:48:46 +0100 Subject: [PATCH] fix double free bug --- file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/file.c b/file.c index c92e60b..54003c1 100644 --- a/file.c +++ b/file.c @@ -75,6 +75,7 @@ static void uci_file_cleanup(struct uci_context *ctx) if (ctx->buf) { free(ctx->buf); + ctx->buf = NULL; ctx->bufsz = 0; } -- 2.25.1