summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/sss_krb5.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/sss_krb5.c b/src/util/sss_krb5.c
index 77234b98..f150379c 100644
--- a/src/util/sss_krb5.c
+++ b/src/util/sss_krb5.c
@@ -485,6 +485,7 @@ const char *KRB5_CALLCONV sss_krb5_get_error_message(krb5_context ctx,
ret = snprintf(s, size, "Kerberos error [%12d]", ec);
if (ret < 0 || ret >= size) {
+ free(s);
return NULL;
}