fix JPS path library memory leak when coin is not reach