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

@ -140,6 +140,7 @@ void avro_index_file(AVRO_INSTANCE *router, const char* filename)
errmsg = NULL;
prev_gtid = gtid;
}
json_decref(row);
}
else
{