"Jiangyi Chen" cjy520lcy@163.com writes:
@@ -218,6 +218,12 @@ int __cdecl main(int argc, char** argv) min, max, avg); }
- if(icmp_file != INVALID_HANDLE_VALUE)
- {
IcmpCloseHandle(icmp_file);
icmp_file = INVALID_HANDLE_VALUE;
- }
- if(send_data) heap_free(send_data);
There's no reason to bother closing handles or freeing data when the process is exiting anyway.