Navigation Menu

Skip to content

Commit

Permalink
Add missing grn_ctx_fin()
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Sep 25, 2017
1 parent f3b8cb3 commit e642619
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/mrn_database_repairer.cpp
Expand Up @@ -87,6 +87,7 @@ namespace mrn {
do {
each_database_body(data.cFileName, &ctx, each_body_func, user_data);
} while (FindNextFile(finder, &data) != 0);
grn_ctx_fin(&ctx);
} else {
GRN_LOG(ctx_, GRN_LOG_WARNING,
"[mroonga][database][repairer][each] "
Expand All @@ -106,6 +107,7 @@ namespace mrn {
while (struct dirent *entry = readdir(dir)) {
each_database_body(entry->d_name, &ctx, each_body_func, user_data);
}
grn_ctx_fin(&ctx);
} else {
GRN_LOG(ctx_, GRN_LOG_WARNING,
"[mroonga][database][repairer][each] "
Expand Down

0 comments on commit e642619

Please sign in to comment.