The problem was that table->vcol_cleanup_expr() was not called in case of error in open_table().
Attach a file by drag & drop or click to upload