free stats_json object

this was causing a huge memory leak