ossec / ossec-hids

OSSEC is an Open Source Host-based Intrusion Detection System that performs log analysis, file integrity checking, policy monitoring, rootkit detection, real-time alerting and active response.
http://www.ossec.net
Other
4.33k stars 1.02k forks source link

ossec-analysisd leaks memory. #2108

Open takeocsc opened 6 months ago

takeocsc commented 6 months ago

Hi,

I’m using ossec3.7.0.

I have identified a program that might be the cause.

It seems that the memory allocated in OS_IsValidIP() is not being freed. https://github.com/ossec/ossec-hids/blob/c8a36b0af3d4ee5252855b90236407cbfb996eb2/src/shared/validate_op.c#L260