summaryrefslogtreecommitdiff
path: root/source3/lib/dbwrap_tdb.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-07-16 18:13:46 -0700
committerJeremy Allison <jra@samba.org>2009-07-16 18:13:46 -0700
commitd5c20c072b464b675fbd5f37a94ae8a6ad403d49 (patch)
tree547f1f586d82b49056fb42899d7e689a5e0e38ad /source3/lib/dbwrap_tdb.c
parent9f0bdd4e17ef5fe0b28a8ec4676d19eb4ffe6786 (diff)
downloadsamba-d5c20c072b464b675fbd5f37a94ae8a6ad403d49.tar.gz
samba-d5c20c072b464b675fbd5f37a94ae8a6ad403d49.tar.bz2
samba-d5c20c072b464b675fbd5f37a94ae8a6ad403d49.zip
Replace short-lived NULL talloc contexts with talloc_tos().
Jeremy.
Diffstat (limited to 'source3/lib/dbwrap_tdb.c')
-rw-r--r--source3/lib/dbwrap_tdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/dbwrap_tdb.c b/source3/lib/dbwrap_tdb.c
index c71e073b41..297a351764 100644
--- a/source3/lib/dbwrap_tdb.c
+++ b/source3/lib/dbwrap_tdb.c
@@ -94,7 +94,7 @@ static struct db_record *db_tdb_fetch_locked(struct db_context *db,
/* Do not accidently allocate/deallocate w/o need when debug level is lower than needed */
if(DEBUGLEVEL >= 10) {
- char *keystr = hex_encode_talloc(NULL, (unsigned char*)key.dptr, key.dsize);
+ char *keystr = hex_encode_talloc(talloc_tos(), (unsigned char*)key.dptr, key.dsize);
DEBUG(10, (DEBUGLEVEL > 10
? "Locking key %s\n" : "Locking key %.20s\n",
keystr));