aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-partition-table.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-partition-table.c')
-rw-r--r--camel/camel-partition-table.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/camel/camel-partition-table.c b/camel/camel-partition-table.c
index 68e0e257b5..fad1a5e002 100644
--- a/camel/camel-partition-table.c
+++ b/camel/camel-partition-table.c
@@ -946,8 +946,10 @@ camel_key_table_next(CamelKeyTable *ki, camel_key_t next, char **keyp, unsigned
if (next == 0) {
next = ki->root->first;
- if (next == 0)
+ if (next == 0) {
+ CAMEL_KEY_TABLE_UNLOCK(ki, lock);
return 0;
+ }
} else
next++;