[Winpcap-users] pcap_list_datalinks() - how to free

Esmond Pitt esmond.pitt at bigpond.com
Wed May 21 06:35:44 GMT 2008


The documentation for the pcap_list_datalinks() function says that the user
is responsible for freeing the array of integers allocated by the function.

As no specific function to do that is provided, presumably we are supposed
to use free(3). But in a DLL environment this is of course most problematic,
and indeed causes SEGVs when I do it.

I think you need to add a pcap_free_datalinks() function. Or is there some
other solution?

EJP



More information about the Winpcap-users mailing list