mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-20 17:29:13 +00:00
Fixes views memory leak
This commit is contained in:
parent
6b83ce7139
commit
b80d3b9844
2 changed files with 12 additions and 0 deletions
|
|
@ -91,6 +91,16 @@ ViewInterface::ViewInterface(const char *_endpoint) : NetworkInterface(_endpoint
|
|||
|
||||
/* **************************************************** */
|
||||
|
||||
ViewInterface::~ViewInterface() {
|
||||
for(int i = 0; i < num_viewed_interfaces; i++) {
|
||||
|
||||
if(viewed_interfaces_queues[i])
|
||||
delete viewed_interfaces_queues[i];
|
||||
}
|
||||
}
|
||||
|
||||
/* **************************************************** */
|
||||
|
||||
bool ViewInterface::viewEnqueue(time_t t, Flow *f, u_int8_t viewed_interface_id) {
|
||||
/*
|
||||
Put the element into the right single-producer (the viewed interface) single-consumer (this view interface) queue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue