mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-14 22:32:30 +01:00
Remove useless check for NULL prior to free.
Approved by: cperciva MFC after: 2 weeks
This commit is contained in:
parent
01d9852a4d
commit
61fd27bb3b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=243894
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user