client: fix bug introduced by pr #65

lack of free