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 4b6c5caa47
commit d9a6b6f324
3 changed files with 20 additions and 17 deletions

View File

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