summaryrefslogtreecommitdiff
path: root/source3/intl
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-03-11 23:58:18 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:18 -0500
commit70c8a21bf8345627f01a69256fbb29672b119b5a (patch)
tree065b30a6998117ef1e3a79835c3ca209275349f8 /source3/intl
parentcdf45080589a55098760321fa65319594a0f65da (diff)
downloadsamba-70c8a21bf8345627f01a69256fbb29672b119b5a.tar.gz
samba-70c8a21bf8345627f01a69256fbb29672b119b5a.tar.bz2
samba-70c8a21bf8345627f01a69256fbb29672b119b5a.zip
r14225: Fix Coverity Bug # 67
(This used to be commit 740522875105ff52d53065cb35720426532fb174)
Diffstat (limited to 'source3/intl')
-rw-r--r--source3/intl/lang_tdb.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/intl/lang_tdb.c b/source3/intl/lang_tdb.c
index d20a15d90e..016f64af52 100644
--- a/source3/intl/lang_tdb.c
+++ b/source3/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);