ZOOKEEPER-1632. fix memory leaks in cli_st (fpj via michim)


git-svn-id: https://svn.apache.org/repos/asf/zookeeper/branches/branch-3.4@1547703 13f79535-47bb-0310-9956-ffa450edef68