summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);