projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0aad675
)
Fix a memory leak in pa_sam_2 where an outer data structure wasn't
author
Greg Hudson
<ghudson@mit.edu>
Wed, 6 May 2009 15:56:21 +0000
(15:56 +0000)
committer
Greg Hudson
<ghudson@mit.edu>
Wed, 6 May 2009 15:56:21 +0000
(15:56 +0000)
freed after the contents are coopted.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22318
dc483132
-0cff-0310-8789-
dd5450dbe970
src/lib/krb5/krb/preauth2.c
patch
|
blob
|
history
diff --git
a/src/lib/krb5/krb/preauth2.c
b/src/lib/krb5/krb/preauth2.c
index d00d59b9d378e20f4bd6888983d6466459ecf482..693791f85f134864c66c9f6454e5bdda0b8d3267 100644
(file)
--- a/
src/lib/krb5/krb/preauth2.c
+++ b/
src/lib/krb5/krb/preauth2.c
@@
-1705,6
+1705,7
@@
krb5_error_code pa_sam_2(krb5_context context,
sam_padata->pa_type = KRB5_PADATA_SAM_RESPONSE_2;
sam_padata->length = scratch->length;
sam_padata->contents = (krb5_octet *) scratch->data;
+ free(scratch);
*out_padata = sam_padata;