Fix mismatched free and strcpy overlap

This commit is contained in:
emanuele-f 2018-10-18 15:18:44 +02:00
parent e0d6c1ee98
commit 94040cc0d9
3 changed files with 11 additions and 7 deletions

View file

@ -734,9 +734,9 @@ void NetworkInterface::deleteDataStructures() {
if(ebpfEvents) {
for(u_int16_t i=0; i<EBPF_QUEUE_LEN; i++)
if(ebpfEvents[i])
delete ebpfEvents[i];
free(ebpfEvents[i]);
delete ebpfEvents;
free(ebpfEvents);
}
#endif
}