diff options
author | Jeremy Allison <jra@samba.org> | 2009-07-16 18:13:46 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-07-16 18:13:46 -0700 |
commit | d5c20c072b464b675fbd5f37a94ae8a6ad403d49 (patch) | |
tree | 547f1f586d82b49056fb42899d7e689a5e0e38ad /source3/lib/dbwrap_tdb.c | |
parent | 9f0bdd4e17ef5fe0b28a8ec4676d19eb4ffe6786 (diff) | |
download | samba-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.c | 2 |
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)); |