From 3f2876bde35d11464638c88cc3c0f52ff13316ee Mon Sep 17 00:00:00 2001 From: MassimilianoPinto Date: Thu, 7 May 2015 15:32:12 +0200 Subject: [PATCH] Fixed buffer free Fixed buffer free --- server/modules/routing/binlog/blr_slave.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/modules/routing/binlog/blr_slave.c b/server/modules/routing/binlog/blr_slave.c index fe2bc2dff..1928e5d9d 100644 --- a/server/modules/routing/binlog/blr_slave.c +++ b/server/modules/routing/binlog/blr_slave.c @@ -368,9 +368,10 @@ int query_len; } else if (strcasecmp(word, "@mariadb_slave_capability") == 0) { - free(query_text); - if (router->mariadb10_compat) + if (router->mariadb10_compat) { + free(query_text); return blr_slave_replay(router, slave, router->saved_master.mariadb10); + } } else if (strcasecmp(word, "@master_binlog_checksum") == 0) {