diff options
author | Casper H.S. Dik <Casper.Dik@Sun.COM> | 2010-05-22 12:44:18 +0200 |
---|---|---|
committer | Casper H.S. Dik <Casper.Dik@Sun.COM> | 2010-05-22 12:44:18 +0200 |
commit | bf8599311c92f3dbd7e51f465d9da6668b81187d (patch) | |
tree | 7bebddedaa5956d2e1564f763257ce61d0aa6abe /usr/src/lib/libsecdb/common | |
parent | cde58dbc6a23d4d38db7c8866312be83221c765f (diff) | |
download | illumos-joyent-bf8599311c92f3dbd7e51f465d9da6668b81187d.tar.gz |
6954245 pfexecd should try to remove the isa directory if the exec->attr == NULL.
6954626 libsecdb rewrite added a memory leak
Diffstat (limited to 'usr/src/lib/libsecdb/common')
-rw-r--r-- | usr/src/lib/libsecdb/common/chkauthattr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/src/lib/libsecdb/common/chkauthattr.c b/usr/src/lib/libsecdb/common/chkauthattr.c index 7f8be5aa4d..3e8e4edaac 100644 --- a/usr/src/lib/libsecdb/common/chkauthattr.c +++ b/usr/src/lib/libsecdb/common/chkauthattr.c @@ -170,8 +170,10 @@ _enum_common(const char *username, } } free_userattr(ua); - if (res != 0) + if (res != 0) { + free_proflist(profs, cnt); return (res); + } } if ((cnt == 0 || strcmp(profs[cnt-1], PROFILE_STOP) != 0) && |