summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-08-21 11:22:36 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-08-22 20:05:14 +0200
commite0b89ca1cc4160f5a9beb15c39dd685edb6021cd (patch)
tree3c255dbaa1786ea9390c0b8d65d331aaf95c0e21 /src/util
parent6f6f757d31ddbab13e5b4c2c1aad3e7d0dae722a (diff)
downloadsssd-e0b89ca1cc4160f5a9beb15c39dd685edb6021cd.tar.gz
sssd-e0b89ca1cc4160f5a9beb15c39dd685edb6021cd.tar.bz2
sssd-e0b89ca1cc4160f5a9beb15c39dd685edb6021cd.zip
Fix memory leak insss_krb5_get_error_message
warning reported by cppcheck
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;
}