~vcs-imports/sssd/trunk

Viewing all changes in revision 7398.

  • Committer: Jakub Hrozek
  • Author(s): Sumit Bose
  • Date: 2017-02-23 09:14:52 UTC
  • Revision ID: git-v1:327a16652bbafbb77b5b90cc7abac3ded7c14364
PAM: fix memory leak in pam_sss

Since there can be multiple rounds trips between the PAM client and SSSD
it might be possible that the same data is send multiple times by SSSD.
So before overriding the old data it should be freed. I've seen this
with the domain name which is send both in the pre-auth and the auth
responses. To be on the safe side I added free() for some other items as
well.

Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: