Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/external/bsd/heimdal/dist/lib/gssapi/krb5 CID 745439:...



details:   https://anonhg.NetBSD.org/src/rev/29550042ce0a
branches:  trunk
changeset: 329160:29550042ce0a
user:      christos <christos%NetBSD.org@localhost>
date:      Mon May 12 15:25:49 2014 +0000

description:
CID 745439: Fix memory leak

diffstat:

 crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/verify_mic.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 79d342e7fe77 -r 29550042ce0a crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/verify_mic.c
--- a/crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/verify_mic.c     Mon May 12 15:21:46 2014 +0000
+++ b/crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/verify_mic.c     Mon May 12 15:25:49 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: verify_mic.c,v 1.1.1.2 2014/04/24 12:45:29 pettai Exp $        */
+/*     $NetBSD: verify_mic.c,v 1.2 2014/05/12 15:25:49 christos Exp $  */
 
 /*
  * Copyright (c) 1997 - 2003 Kungliga Tekniska Högskolan
@@ -256,7 +256,8 @@
   krb5_crypto_destroy (context, crypto);
   ret = krb5_crypto_init(context, key,
                         ETYPE_DES3_CBC_SHA1, &crypto);
-  if (ret){
+  if (ret) {
+      free (tmp);
       *minor_status = ret;
       return GSS_S_FAILURE;
   }



Home | Main Index | Thread Index | Old Index