From 7fc593dd820fa44f7ef05f5a5614f7a2e67134e9 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Sun, 31 May 2015 12:04:06 +0000 Subject: [PATCH] Move cleanup functions to the right place --- usr.sbin/pw/pw_conf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr.sbin/pw/pw_conf.c b/usr.sbin/pw/pw_conf.c index df0bda33ae2..06117e27b74 100644 --- a/usr.sbin/pw/pw_conf.c +++ b/usr.sbin/pw/pw_conf.c @@ -357,9 +357,10 @@ read_userconfig(char const * file) break; } } - free(buf); - fclose(fp); } + free(buf); + fclose(fp); + return (&config); }