[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] memleak in krb5_free_context
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Love,
attached a patch to free the default_cc_name_env var.
Guenther
- --
Günther Deschner GPG-ID: 8EE11688
Red Hat gdeschner@redhat.com
Samba Team gd@samba.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFG/XCFSOk3aI7hFogRAiS9AJoDIh2iUsHmE82fc43siVU5BO8ZVQCeP8Ly
h7bjGm9pUVUBruYH/mBX7PY=
=iYWQ
-----END PGP SIGNATURE-----
--- ./lib/krb5/context.c.orig 2007-09-28 23:18:27.000000000 +0200
+++ ./lib/krb5/context.c 2007-09-28 23:17:57.000000000 +0200
@@ -251,6 +251,8 @@ krb5_free_context(krb5_context context)
{
if (context->default_cc_name)
free(context->default_cc_name);
+ if (context->default_cc_name_env)
+ free(context->default_cc_name_env);
free(context->etypes);
free(context->etypes_des);
krb5_free_host_realm (context, context->default_realms);