Fix a memory leak in EtcdClient.