summaryrefslogtreecommitdiffstats
path: root/pw
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-05-31 12:04:06 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-05-31 12:04:06 +0000
commitd171155f921f281ec62d2d5a084dcdb76f5eb3e7 (patch)
tree5d31f270d00d9952a3380501729694278eb3790b /pw
parent23ffee69bc0d6952305094df0c3dc42adfbcca35 (diff)
downloadpw-darwin-d171155f921f281ec62d2d5a084dcdb76f5eb3e7.tar.gz
pw-darwin-d171155f921f281ec62d2d5a084dcdb76f5eb3e7.tar.zst
pw-darwin-d171155f921f281ec62d2d5a084dcdb76f5eb3e7.zip
Move cleanup functions to the right place
Diffstat (limited to 'pw')
-rw-r--r--pw/pw_conf.c5
1 files changed, 3 insertions, 2 deletions
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);
}