fix decode json decref memory leak bug