Fix memory leak in mod_json_cdr