long slice = Finance.NewSlice();
ret = Finance.GetChatData(sdk, seq, limit, args[3], args[4], Integer.parseInt(args[5]), slice);
if (ret != 0) {
System.out.println("getchatdata ret " + ret);
return;
}
System.out.println("getchatdata :" + Finance.GetContentFromSlice(slice));
Finance.FreeSlice(slice);
如上,slice在ret返回失败,是否也需要调用释放的方法?