dumpfiles/open_live sockets created are not closed
properly. The destructor is written as follow in
the pcap.i file line:
~pcapObject(void);
For some reason, swig only considers it as a destructor if is written like:
~pcapObject();
without the void.
Download the patch to the folder of pylibpcap 6.2 and from there apply the patch do as follow:
% patch -Np1 < pylibpcap.6.2.dstructor_fix.patch
% python setup.py build
% sudo python setup.py install
Patch file for version 6.2
It looks like SWIG must have fixed that bug at some point, but I applied the patch anyway (at least for the constructor and destructor).