MXS-1075: MARIADB_GTID_INFO struct is fully copied
Binlog file in MARIADB_GTID_INFO is now duplicated
This commit is contained in:
@ -2749,6 +2749,7 @@ static MARIADB_GTID_INFO *mariadb_gtid_info_dup(const MARIADB_GTID_INFO *in)
|
|||||||
{
|
{
|
||||||
MARIADB_GTID_INFO *rval = (MARIADB_GTID_INFO *) MXS_CALLOC(1, sizeof(MARIADB_GTID_INFO));
|
MARIADB_GTID_INFO *rval = (MARIADB_GTID_INFO *) MXS_CALLOC(1, sizeof(MARIADB_GTID_INFO));
|
||||||
char *gtid = MXS_STRDUP(in->gtid);
|
char *gtid = MXS_STRDUP(in->gtid);
|
||||||
|
char *file = MXS_STRDUP(in->file);
|
||||||
if (!gtid || !rval)
|
if (!gtid || !rval)
|
||||||
{
|
{
|
||||||
MXS_FREE(rval);
|
MXS_FREE(rval);
|
||||||
|
|||||||
Reference in New Issue
Block a user