client: fix a message leak

Signed-off-by: John Spray <john.spray@redhat.com>