This pull request fixes some memory leaks reported in #1201.
But it also fixes an issue in dns_spoof plugin:
If the plugin gets activated everything works as expected. When the plugin gets deactivated and re-activated, the plugin doesn't know about any information specifiied in the etter.dns configuration file.
This is due to an too-early free of entries read from etter.dns file.
However the ASAN reports are calmed down only when #1205 has been merged.
This pull request fixes some memory leaks reported in #1201. But it also fixes an issue in dns_spoof plugin: If the plugin gets activated everything works as expected. When the plugin gets deactivated and re-activated, the plugin doesn't know about any information specifiied in the etter.dns configuration file.
This is due to an too-early free of entries read from
etter.dns
file.However the ASAN reports are calmed down only when #1205 has been merged.