summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2003-08-15 01:46:09 +0000
committerVolker Lendecke <vlendec@samba.org>2003-08-15 01:46:09 +0000
commitc9aa836204eb722890cbd4d64248ff7ef1a50e60 (patch)
tree376adbceb833f8a7c59fb05321f6055ac4bee6d2 /source3/libsmb
parent062f89bc2833bf49f873a7fd5c2624babd702db0 (diff)
downloadsamba-c9aa836204eb722890cbd4d64248ff7ef1a50e60.tar.gz
samba-c9aa836204eb722890cbd4d64248ff7ef1a50e60.tar.bz2
samba-c9aa836204eb722890cbd4d64248ff7ef1a50e60.zip
Fix memleaks.
Currently I'm compiling against MIT Kerberos 1.2.8. Anthony, you said you have a heimdal installation available. Could you please compile this stuff with krb and check it with valgrind? Thanks, Volker (This used to be commit d8ab44685994b302bb46eed9001c72c194d13dc8)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clikrb5.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/libsmb/clikrb5.c b/source3/libsmb/clikrb5.c
index 7e1801f555..1fccc04a01 100644
--- a/source3/libsmb/clikrb5.c
+++ b/source3/libsmb/clikrb5.c
@@ -97,7 +97,9 @@
return ret;
}
krb5_use_enctype(context, &eblock, enctype);
- return krb5_string_to_key(context, &eblock, key, password, &salt);
+ ret = krb5_string_to_key(context, &eblock, key, password, &salt);
+ SAFE_FREE(salt.data);
+ return ret;
}
#elif defined(HAVE_KRB5_GET_PW_SALT) && defined(HAVE_KRB5_STRING_TO_KEY_SALT)
int create_kerberos_key_from_string(krb5_context context,