Actions
Bug #126
closedRadix tree implementation leaks memory
Affected Versions:
Effort:
Difficulty:
Label:
Description
The radix tree implementation leaks memory in several places. This causes the current ip-only matching code to fill up the memory. When running a large pcap the memory usage grows to 6GB+ easily (at this point I killed the process).
The issue seems to be that in SCRadixFindKey an object "prefix" is created, but it's not freed at all in cases where the function returns NULL and possibly never ever. The same issue seems to be present in SCRadixAddKey and SCRadixRemoveKey at least.
Please completely review the radix implementation.
Files
Actions