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); }