URL:
https://github.com/SSSD/sssd/pull/5560
Author: alexey-tikhonov
Title: #5560: pam_sss: fixed potential mem leak
Action: opened
PR body:
"""
Fixes following covscan issue:
```
Error: RESOURCE_LEAK (CWE-772): [#def1]
src/sss_client/pam_sss.c:1714: alloc_arg: "asprintf" allocates memory that is
stored into "prompt".
src/sss_client/pam_sss.c:1765: leaked_storage: Variable "prompt" going out of
scope leaks the storage it points to.
# 1763| free(response);
# 1764|
# 1765|-> return ret;
# 1766| #else
# 1767| return ENOTSUP;
```
https://bugzilla.redhat.com/show_bug.cgi?id=1938876
"""
To pull the PR as Git branch:
git remote add ghsssd
https://github.com/SSSD/sssd
git fetch ghsssd pull/5560/head:pr5560
git checkout pr5560