IP_ADAPTER_INFO *ptr=new IP_ADAPTER_INFO[100];
if I free using
delete ptr;
will it lead to memory leak, if not t
delete : calls the appropriate destructor only for the element pointed to (if needed), then frees the memory chunk
delete[] : calls the appropriate destructors for each element in its array (if needed), then frees the memory chunk