summaryrefslogtreecommitdiffstats
path: root/source/lib/afs.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@sernet.de>2007-10-28 19:15:08 +0100
committerStefan Metzmacher <metze@samba.org>2007-11-09 15:12:30 +0100
commit5f205ab48d8ac3b7af573ea0be1ce095ab835448 (patch)
tree5319365d363f5a429e6d79f21b209840b6926e3b /source/lib/afs.c
parent814bed029efa391e664ac432d0d68dfeab26381f (diff)
downloadsamba-5f205ab48d8ac3b7af573ea0be1ce095ab835448.tar.gz
samba-5f205ab48d8ac3b7af573ea0be1ce095ab835448.tar.xz
samba-5f205ab48d8ac3b7af573ea0be1ce095ab835448.zip
Make base64_encode_data_blob return a talloced string
Diffstat (limited to 'source/lib/afs.c')
-rw-r--r--source/lib/afs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/lib/afs.c b/source/lib/afs.c
index e9a70590280..35f213fd080 100644
--- a/source/lib/afs.c
+++ b/source/lib/afs.c
@@ -53,7 +53,7 @@ static char *afs_encode_token(const char *cell, const DATA_BLOB ticket,
base64_key = base64_encode_data_blob(key);
if (base64_key == NULL) {
- free(base64_ticket);
+ TALLOC_FREE(base64_ticket);
return NULL;
}
@@ -63,8 +63,8 @@ static char *afs_encode_token(const char *cell, const DATA_BLOB ticket,
DEBUG(10, ("Got ticket string:\n%s\n", result));
- free(base64_ticket);
- free(base64_key);
+ TALLOC_FREE(base64_ticket);
+ TALLOC_FREE(base64_key);
return result;
}