Use new instead of malloc

Using new instead of malloc is required for proper initialization of C++
classes.
This commit is contained in:
Markus Mäkelä
2017-06-12 11:43:48 +03:00
parent c77dcea807
commit f5a0526f2c
3 changed files with 57 additions and 88 deletions

View File

@ -83,6 +83,8 @@ mysql_sescmd_t *mysql_sescmd_init(rses_property_t *rses_prop,
sescmd->my_sescmd_buf = sescmd_buf;
sescmd->my_sescmd_packet_type = packet_type;
sescmd->position = atomic_add(&rses->pos_generator, 1);
sescmd->my_sescmd_is_replied = false;
sescmd->reply_cmd = 0;
return sescmd;
}