1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-08 14:02:17 +03:00

Follow up of merge from Sutou Kouhei:

use mariadb_rpl_free_event in case of network error.
This commit is contained in:
Georg Richter
2021-11-21 15:18:17 +01:00
parent a4f40a3714
commit 7c29edf8a4

View File

@@ -439,7 +439,7 @@ mem_error:
SET_CLIENT_ERROR(rpl->mysql, CR_OUT_OF_MEMORY, SQLSTATE_UNKNOWN, 0);
return 0;
net_error:
free(rpl_event);
mariadb_free_rpl_event(rpl_event);
SET_CLIENT_ERROR(rpl->mysql, CR_CONNECTION_ERROR, SQLSTATE_UNKNOWN, 0);
return 0;
}