summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2013-05-07 22:30:25 +0200
committerMiloslav Trmač <mitr@redhat.com>2013-05-07 22:44:50 +0200
commitd7b6ab40b586c255c49aba22f558eb6602c88b1e (patch)
treebdacefd4325140c03eb94e784b70adef40901215
parentc98ceb5347653981eee2e7d670312f0a97da52d3 (diff)
downloadpolkit-d7b6ab40b586c255c49aba22f558eb6602c88b1e.tar.gz
Fix a memory leak
https://bugs.freedesktop.org/show_bug.cgi?id=64336
-rw-r--r--src/polkitagent/polkitagenthelper-pam.c1
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;
}