2009-09-07 Steve Grubb <sgrubb@redhat.com>

* libmisc/copydir.c, lib/shadowmem.c, lib/groupmem.c, lib/pwmem.c:
	Fix some memory leaks.
This commit is contained in:
nekral-guest
2009-09-07 18:53:47 +00:00
parent 8806b07bd2
commit 1e6b107d99
5 changed files with 37 additions and 0 deletions

View File

@@ -52,10 +52,13 @@
*sp = *spent;
sp->sp_namp = strdup (spent->sp_namp);
if (NULL == sp->sp_namp) {
free(sp);
return NULL;
}
sp->sp_pwdp = strdup (spent->sp_pwdp);
if (NULL == sp->sp_pwdp) {
free(sp->sp_namp);
free(sp);
return NULL;
}