diff options
author | Miloslav Trmač <mitr@redhat.com> | 2013-05-07 22:30:25 +0200 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2013-05-07 22:44:50 +0200 |
commit | d7b6ab40b586c255c49aba22f558eb6602c88b1e (patch) | |
tree | bdacefd4325140c03eb94e784b70adef40901215 /src | |
parent | c98ceb5347653981eee2e7d670312f0a97da52d3 (diff) | |
download | polkit-d7b6ab40b586c255c49aba22f558eb6602c88b1e.tar.gz |
Fix a memory leak
https://bugs.freedesktop.org/show_bug.cgi?id=64336
Diffstat (limited to 'src')
-rw-r--r-- | src/polkitagent/polkitagenthelper-pam.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/polkitagent/polkitagenthelper-pam.c b/src/polkitagent/polkitagenthelper-pam.c index 7af5321..292abbe 100644 --- a/src/polkitagent/polkitagenthelper-pam.c +++ b/src/polkitagent/polkitagenthelper-pam.c @@ -321,6 +321,7 @@ error: } } memset (aresp, 0, n * sizeof *aresp); + free (aresp); *resp = NULL; return PAM_CONV_ERR; } |