summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2005-09-13 21:21:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:03:37 -0500
commit2d878a4b6d66663938e3540b9726ce158ec9a253 (patch)
tree702d8cb663a5bc5cd5feaf20818859dcba802bc4 /source3
parent20a36a780a4998ea3619bcf3bb86d90b18fd8f2a (diff)
downloadsamba-2d878a4b6d66663938e3540b9726ce158ec9a253.tar.gz
samba-2d878a4b6d66663938e3540b9726ce158ec9a253.tar.bz2
samba-2d878a4b6d66663938e3540b9726ce158ec9a253.zip
r10210: Fix memleak.
Guenther (This used to be commit 10358d16d7946f6b0c989db8bc26f8840144389b)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/clikrb5.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/libsmb/clikrb5.c b/source3/libsmb/clikrb5.c
index e70c2b8bec..1741c1db3c 100644
--- a/source3/libsmb/clikrb5.c
+++ b/source3/libsmb/clikrb5.c
@@ -119,8 +119,10 @@
DEBUG(1,("krb5_get_pw_salt failed (%s)\n", error_message(ret)));
return ret;
}
- return krb5_string_to_key_salt(context, enctype, password->data,
- salt, key);
+
+ ret = krb5_string_to_key_salt(context, enctype, password->data, salt, key);
+ krb5_free_salt(context, salt);
+ return ret;
}
#else
#error UNKNOWN_CREATE_KEY_FUNCTIONS