Fix memory leak while using add-tables and filter-tables
Fix memory leak while using add-tables and filter-tables

This issue was reported in PR #147 by @haizz. The proposed fix was
incomplete (as I pointed out) and I fixed add-tables option and also
format 2 (add-tables and filter-tables).

fabriziomello/wal2json,eulerto/wal2json