svn commit: r283816 - head/usr.sbin/pw
Baptiste Daroussin
bapt at FreeBSD.org
Sun May 31 11:57:00 UTC 2015
Author: bapt
Date: Sun May 31 11:56:59 2015
New Revision: 283816
URL: https://svnweb.freebsd.org/changeset/base/283816
Log:
Remove useless test before free()
Modified:
head/usr.sbin/pw/pw_conf.c
Modified: head/usr.sbin/pw/pw_conf.c
==============================================================================
--- head/usr.sbin/pw/pw_conf.c Sun May 31 11:55:28 2015 (r283815)
+++ head/usr.sbin/pw/pw_conf.c Sun May 31 11:56:59 2015 (r283816)
@@ -357,8 +357,7 @@ read_userconfig(char const * file)
break;
}
}
- if (linecap > 0)
- free(buf);
+ free(buf);
fclose(fp);
}
return (&config);
More information about the svn-src-head
mailing list