Navigation Menu

Skip to content

Commit

Permalink
Don't touch on error
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 26, 2015
1 parent 82eb59a commit c04a933
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/db.c
Expand Up @@ -4101,8 +4101,9 @@ grn_column_create(grn_ctx *ctx, grn_obj *table,
if (grn_db_obj_init(ctx, db, id, DB_OBJ(res))) {
_grn_obj_remove(ctx, res);
res = NULL;
} else {
grn_obj_touch(ctx, res, NULL);
}
grn_obj_touch(ctx, res, NULL);
}
exit :
if (!res && id) { grn_obj_delete_by_id(ctx, db, id, GRN_TRUE); }
Expand Down

0 comments on commit c04a933

Please sign in to comment.