summaryrefslogtreecommitdiff
path: root/source3/libads/authdata.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2003-08-15 01:46:09 +0000
committerVolker Lendecke <vlendec@samba.org>2003-08-15 01:46:09 +0000
commitc9aa836204eb722890cbd4d64248ff7ef1a50e60 (patch)
tree376adbceb833f8a7c59fb05321f6055ac4bee6d2 /source3/libads/authdata.c
parent062f89bc2833bf49f873a7fd5c2624babd702db0 (diff)
downloadsamba-c9aa836204eb722890cbd4d64248ff7ef1a50e60.tar.gz
samba-c9aa836204eb722890cbd4d64248ff7ef1a50e60.tar.bz2
samba-c9aa836204eb722890cbd4d64248ff7ef1a50e60.zip
Fix memleaks.
Currently I'm compiling against MIT Kerberos 1.2.8. Anthony, you said you have a heimdal installation available. Could you please compile this stuff with krb and check it with valgrind? Thanks, Volker (This used to be commit d8ab44685994b302bb46eed9001c72c194d13dc8)
Diffstat (limited to 'source3/libads/authdata.c')
-rw-r--r--source3/libads/authdata.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/libads/authdata.c b/source3/libads/authdata.c
index 50a9ef2718..f78a4ad707 100644
--- a/source3/libads/authdata.c
+++ b/source3/libads/authdata.c
@@ -39,6 +39,7 @@ static DATA_BLOB unwrap_pac(DATA_BLOB *auth_data)
asn1_end_tag(&data);
asn1_end_tag(&data);
asn1_end_tag(&data);
+ asn1_free(&data);
return pac_contents;
}
@@ -603,6 +604,8 @@ PAC_DATA *decode_pac_data(DATA_BLOB *auth_data, TALLOC_CTX *ctx)
prs_copy_data_in(&ps, pac_data_blob.data, pac_data_blob.length);
prs_set_offset(&ps, 0);
+ data_blob_free(&pac_data_blob);
+
pac_data = (PAC_DATA *) talloc_zero(ctx, sizeof(PAC_DATA));
pac_io_pac_data("pac data", pac_data, &ps, 0);