From 748743942feb02681431be1ebc1ac4d04367a362 Mon Sep 17 00:00:00 2001 From: venaas Date: Tue, 13 May 2008 14:28:45 +0000 Subject: fixed some bugs with free/alloc of strings and new gconfig git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@252 e88ac4ed-0b26-0410-9574-a7f39faa03bf --- catgconf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'catgconf.c') diff --git a/catgconf.c b/catgconf.c index dc0f312..f3d7b9c 100644 --- a/catgconf.c +++ b/catgconf.c @@ -6,10 +6,12 @@ #include "gconfig.h" void listconfig(struct gconffile **cf, char *block, int compact) { - char *opt, *val; + char *opt = NULL, *val = NULL; int conftype; for (;;) { + free(opt); + free(val); getconfigline(cf, block, &opt, &val, &conftype); if (!opt) return; -- cgit v1.1