Client: Fix memory leak.