diff options
author | Tobias Stoeckmann <tobias@stoeckmann.org> | 2023-12-05 20:59:05 +0100 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2023-12-05 19:59:05 +0000 |
commit | 36586fc218918ab8d03f8062efbf5081c0349d7e (patch) | |
tree | e4bac6481ceab692aa1dc9719b64d3714c1cff81 /modules/pam_setquota/pam_setquota.c | |
parent | dd87776d3683b1fe66b55c750af9e7ab2c5461c2 (diff) | |
download | pam-36586fc218918ab8d03f8062efbf5081c0349d7e.tar.gz pam-36586fc218918ab8d03f8062efbf5081c0349d7e.tar.bz2 pam-36586fc218918ab8d03f8062efbf5081c0349d7e.zip |
pam_setquota: plug memory leak
The result of pam_modutil_search_key must be freed.
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Diffstat (limited to 'modules/pam_setquota/pam_setquota.c')
-rw-r--r-- | modules/pam_setquota/pam_setquota.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/pam_setquota/pam_setquota.c b/modules/pam_setquota/pam_setquota.c index ec45baac..c15fc669 100644 --- a/modules/pam_setquota/pam_setquota.c +++ b/modules/pam_setquota/pam_setquota.c @@ -201,6 +201,7 @@ pam_sm_open_session(pam_handle_t *pamh, int flags UNUSED, */ if (val) { param.start_uid = str_to_uid(pamh, val, param.start_uid, PATH_LOGIN_DEFS":UID_MIN"); + _pam_drop(val); } /* Parse parameter values |