]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r2474: (re-)fix memleak (initially found by jra).
authorGünther Deschner <gd@samba.org>
Tue, 21 Sep 2004 12:50:04 +0000 (12:50 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:52:44 +0000 (10:52 -0500)
heimdal 0.6.1rc3 had a bug causing winbindd to die, heimdal version
0.6.1 and higher have that fixed (thanks to Love from Heimdal).

SuSE has been informed about this possible pitfall, any other vendors
that ship with heimdal-0.6.1rc3 to be notified ?

Guenther

source/libsmb/clikrb5.c

index 2b0c05449375c191bfb377bcb1e0a0f40edbe9c5..f7f84f1e2976aaa258ad782722f360c3e67efa7f 100644 (file)
@@ -430,14 +430,8 @@ int cli_krb5_get_ticket(const char *principal, time_t time_offset,
 failed:
 
        if ( context ) {
-/* Removed by jra. They really need to fix their kerberos so we don't leak memory. 
- JERRY -- disabled since it causes heimdal 0.6.1rc3 to die
-          SuSE 9.1 Pro 
-*/
                if (ccdef)
-#if 0 /* redisabled by gd :) at least until any official heimdal version has it fixed. */
                        krb5_cc_close(context, ccdef);
-#endif
                if (auth_context)
                        krb5_auth_con_free(context, auth_context);
                krb5_free_context(context);