Fix avrorouter memory leaks

The loading of the JSON schemas leaked memory as functions that increment
the reference count were used.
This commit is contained in:
Markus Mäkelä
2017-06-02 10:55:45 +03:00
parent d5a72d1b75
commit 4c78e2c99a
3 changed files with 20 additions and 17 deletions

View File

@ -414,6 +414,7 @@ createInstance(SERVICE *service, char **options)
inst->gtid.seq = 0;
inst->gtid.server_id = 0;
inst->gtid.timestamp = 0;
memset(&inst->active_maps, 0, sizeof(inst->active_maps));
bool err = false;
if (param)