Skip to content

Commit b211b21

Browse files
committed
Start the refcount at 1
1 parent 1c0e06c commit b211b21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/mysql2/statement.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ VALUE rb_mysql_stmt_new(VALUE rb_client, VALUE sql) {
109109
rb_stmt = Data_Make_Struct(cMysql2Statement, mysql_stmt_wrapper, rb_mysql_stmt_mark, rb_mysql_stmt_free, stmt_wrapper);
110110
{
111111
stmt_wrapper->client = rb_client;
112-
stmt_wrapper->refcount = 0;
112+
stmt_wrapper->refcount = 1;
113113
stmt_wrapper->stmt = NULL;
114114
}
115115

0 commit comments

Comments
 (0)