diff options
author | Jeremy Allison <jra@samba.org> | 2006-06-29 00:04:47 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:19:06 -0500 |
commit | 124cd3c6043900be696148bb3c416f8c7c098cc9 (patch) | |
tree | 9098eaad8d71c90f7e983d1ea4369da296cef950 /source3/passdb | |
parent | cc1457beb00faa6869e2472e305b4e97c0995ea3 (diff) | |
download | samba-124cd3c6043900be696148bb3c416f8c7c098cc9.tar.gz samba-124cd3c6043900be696148bb3c416f8c7c098cc9.tar.bz2 samba-124cd3c6043900be696148bb3c416f8c7c098cc9.zip |
r16663: Fix coverity #301, memleak in error path.
Jeremy.
(This used to be commit dfdb4ce89155dc1528b455252751616cc2c6708c)
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/pdb_tdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/passdb/pdb_tdb.c b/source3/passdb/pdb_tdb.c index 11bbbc186c..f3ae4b7b02 100644 --- a/source3/passdb/pdb_tdb.c +++ b/source3/passdb/pdb_tdb.c @@ -905,6 +905,7 @@ static int tdbsam_traverse_setpwent(TDB_CONTEXT *t, TDB_DATA key, TDB_DATA data, if (!ptr->key.dptr) { DEBUG(0,("tdbsam_traverse_setpwent: memdup failed\n")); /* just return 0 and let the traversal continue */ + SAFE_FREE(ptr); return 0; } @@ -914,7 +915,6 @@ static int tdbsam_traverse_setpwent(TDB_CONTEXT *t, TDB_DATA key, TDB_DATA data, } - return 0; } |