From d171155f921f281ec62d2d5a084dcdb76f5eb3e7 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Sun, 31 May 2015 12:04:06 +0000 Subject: Move cleanup functions to the right place --- pw/pw_conf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pw') diff --git a/pw/pw_conf.c b/pw/pw_conf.c index df0bda3..06117e2 100644 --- a/pw/pw_conf.c +++ b/pw/pw_conf.c @@ -357,9 +357,10 @@ read_userconfig(char const * file) break; } } - free(buf); - fclose(fp); } + free(buf); + fclose(fp); + return (&config); } -- cgit v1.2.3-56-ge451