Date: Wed, 5 Dec 2012 13:56:43 +0000 (UTC) From: Eitan Adler <eadler@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r243894 - head/usr.sbin/pw Message-ID: <201212051356.qB5DuhoU068258@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212051356.qB5DuhoU068258>