diff options
author | bapt <bapt@FreeBSD.org> | 2015-05-31 11:56:59 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-05-31 11:56:59 +0000 |
commit | 5da06ca262db2a05a1c6624c6da9f50d75faebc8 (patch) | |
tree | 033705b1cfc5960832516c752e54376e607de468 | |
parent | b65872777dda995596792a9b59d14249b6d476a2 (diff) | |
download | FreeBSD-src-5da06ca262db2a05a1c6624c6da9f50d75faebc8.zip FreeBSD-src-5da06ca262db2a05a1c6624c6da9f50d75faebc8.tar.gz |
Remove useless test before free()
-rw-r--r-- | usr.sbin/pw/pw_conf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/pw/pw_conf.c b/usr.sbin/pw/pw_conf.c index f67d04b..df0bda3 100644 --- a/usr.sbin/pw/pw_conf.c +++ b/usr.sbin/pw/pw_conf.c @@ -357,8 +357,7 @@ read_userconfig(char const * file) break; } } - if (linecap > 0) - free(buf); + free(buf); fclose(fp); } return (&config); |