summaryrefslogtreecommitdiff
path: root/src/cursor/cur_table.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cursor/cur_table.c')
-rw-r--r--src/cursor/cur_table.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cursor/cur_table.c b/src/cursor/cur_table.c
index d2ad1238a7b..d969f91035e 100644
--- a/src/cursor/cur_table.c
+++ b/src/cursor/cur_table.c
@@ -630,13 +630,11 @@ __wt_curtable_open(WT_SESSION_IMPL *session,
WT_ERR(__curtable_open_colgroups(ctable, cfg));
STATIC_ASSERT(offsetof(WT_CURSOR_TABLE, iface) == 0);
- __wt_cursor_init(cursor, cursor->uri, 0, 1, cfg);
+ WT_ERR(__wt_cursor_init(cursor, cursor->uri, 0, 1, cfg));
*cursorp = cursor;
if (0) {
-err: __wt_free(session, ctable);
- __wt_buf_free(session, &fmt);
- __wt_buf_free(session, &plan);
+err: (void)__curtable_close(cursor, NULL);
}
return (ret);