summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sss_client/pam_sss.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sss_client/pam_sss.c b/src/sss_client/pam_sss.c
index d11fc0af..2faa3ad2 100644
--- a/src/sss_client/pam_sss.c
+++ b/src/sss_client/pam_sss.c
@@ -279,6 +279,7 @@ static int pack_message_v3(struct pam_items *pi, size_t *size,
if (rp != len) {
D(("error during packet creation."));
+ free(buf);
return PAM_BUF_ERR;
}