From: Felix Fietkau Date: Wed, 23 Jan 2008 01:48:46 +0000 (+0100) Subject: fix double free bug X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=commitdiff_plain;h=6e141df7e2a603fcfced2f020e8964492c34a307 fix double free bug --- 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; }