mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-20 09:03:24 +00:00
Fixed invalid free
Fixed a couple of small memory leaks
This commit is contained in:
parent
77426f7ece
commit
a15f7629a5
5 changed files with 27 additions and 29 deletions
|
|
@ -246,6 +246,8 @@ int16_t AddressTree::addAddress(char *_net) {
|
|||
|
||||
node = ptree_add_rule(ptree, net);
|
||||
|
||||
free(net);
|
||||
|
||||
if(node) {
|
||||
node->user_data = numAddresses;
|
||||
addressString.push_back(strdup(net));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue