--- libaitrpc/example/tcli.c 2012/03/28 13:37:13 1.6.2.6 +++ libaitrpc/example/tcli.c 2012/03/29 01:34:16 1.7 @@ -13,8 +13,6 @@ int main() array_t *valz, *arr; char *mem, *blob43 = malloc(512); - printf("disable=%d enable=%d\n", disable, enable); - cli = rpc_cli_openClient(100, 2, 1024 * 10, 0, AF_INET, "127.0.0.1", 11111); // cli = rpc_cli_openClient(100, 2, AF_LOCAL, "0.0.0.0", 11111); if (!cli) { @@ -43,6 +41,7 @@ int main() AIT_NEW_BLOB(v, 512); if (rpc_cli_sendBLOB(cli2, v, blob43) == -1) { printf("!!!!! blob error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError()); + io_freeVars(&valz); rpc_cli_closeBLOBClient(cli2); rpc_cli_closeClient(cli); free(blob43); @@ -60,6 +59,7 @@ int main() // for (i = 0; i < 1000000; i++) if ((ret = rpc_cli_execCall(cli, RPC_REPLY, NULL, "BBB", valz, &arr)) < 0) { printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError()); + io_freeVars(&valz); rpc_cli_closeBLOBClient(cli2); rpc_cli_closeClient(cli); free(blob43);