Remove useless check for NULL prior to free.

Approved by:	cperciva
MFC after:	2 weeks
This commit is contained in:
Eitan Adler 2012-12-05 13:56:43 +00:00
parent 01d9852a4d
commit 61fd27bb3b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=243894
2 changed files with 2 additions and 4 deletions

View File

@ -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

View File

@ -274,8 +274,7 @@ pw_group(struct userconf * cnf, int mode, struct cargs * args)
pw_log(cnf, mode, W_GROUP, "%s(%ld)", grp->gr_name, (long) grp->gr_gid);
if (members)
free(members);
free(members);
return EXIT_SUCCESS;
}