diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-03-11 23:58:18 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:15:18 -0500 |
commit | 740522875105ff52d53065cb35720426532fb174 (patch) | |
tree | 13cbcb78065ea00b30d934a0a4635f47cc2ed2f7 /source/intl/lang_tdb.c | |
parent | e1c617adae51a4645804421394aba05de9dc1e3f (diff) | |
download | samba-740522875105ff52d53065cb35720426532fb174.tar.gz samba-740522875105ff52d53065cb35720426532fb174.tar.xz samba-740522875105ff52d53065cb35720426532fb174.zip |
r14225: Fix Coverity Bug # 67
Diffstat (limited to 'source/intl/lang_tdb.c')
-rw-r--r-- | source/intl/lang_tdb.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/intl/lang_tdb.c b/source/intl/lang_tdb.c index d20a15d90e2..016f64af52a 100644 --- a/source/intl/lang_tdb.c +++ b/source/intl/lang_tdb.c @@ -40,7 +40,10 @@ static BOOL load_msg(const char *msg_file) return False; } - if (tdb_lockall(tdb) != 0) return False; + if (tdb_lockall(tdb) != 0) { + file_lines_free(lines); + return False; + } /* wipe the db */ tdb_traverse(tdb, tdb_traverse_delete_fn, NULL); |