[prev in list] [next in list] [prev in thread] [next in thread] 

List:       krb5-cvs
Subject:    svn rev #24904: trunk/src/lib/krb5/krb/
From:       tsitkova () mit ! edu
Date:       2011-04-28 15:43:45
Message-ID: 201104281543.p3SFhjqd012387 () drugstore ! mit ! edu
[Download RAW message or body]

http://src.mit.edu/fisheye/changelog/krb5/?cs=24904
Commit By: tsitkova
Log Message:
Properly release resources in krb5_copy_authenticator().



Changed Files:
U   trunk/src/lib/krb5/krb/copy_athctr.c
Modified: trunk/src/lib/krb5/krb/copy_athctr.c
===================================================================
--- trunk/src/lib/krb5/krb/copy_athctr.c	2011-04-27 22:09:29 UTC (rev 24903)
+++ trunk/src/lib/krb5/krb/copy_athctr.c	2011-04-28 15:43:45 UTC (rev 24904)
@@ -55,7 +55,6 @@
     if (authfrom->subkey) {
         retval = krb5_copy_keyblock(context, authfrom->subkey, &tempto->subkey);
         if (retval) {
-            free(tempto->subkey);
             krb5_free_checksum(context, tempto->checksum);
             krb5_free_principal(context, tempto->client);
             free(tempto);
@@ -67,10 +66,9 @@
         retval = krb5_copy_authdata(context, authfrom->authorization_data,
                                     &tempto->authorization_data);
         if (retval) {
-            free(tempto->subkey);
+            krb5_free_keyblock(context, tempto->subkey);
             krb5_free_checksum(context, tempto->checksum);
             krb5_free_principal(context, tempto->client);
-            krb5_free_authdata(context, tempto->authorization_data);
             free(tempto);
             return retval;
         }

_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic