svn commit: r243894 - head/usr.sbin/pw
Eitan Adler
eadler at FreeBSD.org
Wed Dec 5 13:56:44 UTC 2012
Author: eadler
Date: Wed Dec 5 13:56:43 2012
New Revision: 243894
URL: http://svnweb.freebsd.org/changeset/base/243894
Log:
Remove useless check for NULL prior to free.
Approved by: cperciva
MFC after: 2 weeks
Modified:
head/usr.sbin/pw/bitmap.c
head/usr.sbin/pw/pw_group.c
Modified: head/usr.sbin/pw/bitmap.c
==============================================================================
--- head/usr.sbin/pw/bitmap.c Wed Dec 5 13:56:39 2012 (r243893)
+++ head/usr.sbin/pw/bitmap.c Wed Dec 5 13:56:43 2012 (r243894)
@@ -50,8 +50,7 @@ bm_alloc(int size)
void
bm_dealloc(struct bitmap * bm)
{
- if (bm->map)
- free(bm->map);
+ free(bm->map);
}
static void
Modified: head/usr.sbin/pw/pw_group.c
==============================================================================
--- head/usr.sbin/pw/pw_group.c Wed Dec 5 13:56:39 2012 (r243893)
+++ head/usr.sbin/pw/pw_group.c Wed Dec 5 13:56:43 2012 (r243894)
@@ -274,8 +274,7 @@ pw_group(struct userconf * cnf, int mode
pw_log(cnf, mode, W_GROUP, "%s(%ld)", grp->gr_name, (long) grp->gr_gid);
- if (members)
- free(members);
+ free(members);
return EXIT_SUCCESS;
}
More information about the svn-src-all
mailing list