diff options
author | venaas <venaas> | 2008-05-13 14:28:45 +0000 |
---|---|---|
committer | venaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf> | 2008-05-13 14:28:45 +0000 |
commit | 748743942feb02681431be1ebc1ac4d04367a362 (patch) | |
tree | 3802c2262a23fb1ad4d582ecba7eeb927622310f /catgconf.c | |
parent | 099ecc114be585f16a94dbc0989286b7306509c1 (diff) |
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
Diffstat (limited to 'catgconf.c')
-rw-r--r-- | catgconf.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |