diff options
author | Jeremy Allison <jra@samba.org> | 2004-07-08 21:01:30 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:52:10 -0500 |
commit | d4ac326d46faab010eeeb24c893ab13bbbf0337e (patch) | |
tree | 8c9a257d054dbd4a8e79f6bccd6187f0b507468b /source3/passdb/pdb_tdb.c | |
parent | c1a0b0a9e7ce57bdb0e5341f8d272bc02a4b6e84 (diff) | |
download | samba-d4ac326d46faab010eeeb24c893ab13bbbf0337e.tar.gz samba-d4ac326d46faab010eeeb24c893ab13bbbf0337e.tar.bz2 samba-d4ac326d46faab010eeeb24c893ab13bbbf0337e.zip |
r1412: Fix password history list in tdbsam. Fix some memory leaks. Add
my (C) to a header file that was at least 50% mine :-).
Jeremy.
(This used to be commit 8ee6060977ec8e65082f3ad09e1e1ccf5b4672ed)
Diffstat (limited to 'source3/passdb/pdb_tdb.c')
-rw-r--r-- | source3/passdb/pdb_tdb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/passdb/pdb_tdb.c b/source3/passdb/pdb_tdb.c index 97ef467064..5fb5ce3891 100644 --- a/source3/passdb/pdb_tdb.c +++ b/source3/passdb/pdb_tdb.c @@ -138,6 +138,9 @@ static BOOL tdbsam_convert(TDB_CONTEXT *pdb_tdb, tdbsamver_t from) return False; } + /* We're finished with the old data. */ + SAFE_FREE(data.dptr); + /* pack from the buffer into the new format */ DEBUG(10,("tdbsam_convert: Try packing a record (key:%s) (version:%d)\n", key.dptr, from)); if ((data.dsize=init_buffer_from_sam (&buf, user, False)) == -1) { |