From f183d30bc19ccc5dafeb7f469b83a8ce045d9419 Mon Sep 17 00:00:00 2001 Message-Id: From: Mark Wooding Date: Sat, 14 Mar 2009 19:00:52 +0000 Subject: [PATCH] Zero out configuration strings when they are freed. This means that aliased configuration items aren't double-freed. Organization: Straylight/Edgeware From: Richard Kettlewell --- lib/configuration.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/configuration.c b/lib/configuration.c index 035e814..958ea6c 100644 --- a/lib/configuration.c +++ b/lib/configuration.c @@ -498,6 +498,7 @@ static void free_none(struct config attribute((unused)) *c, static void free_string(struct config *c, const struct conf *whoami) { xfree(VALUE(c, char *)); + VALUE(c, char *) = 0; } static void free_stringlist(struct config *c, -- [mdw]