robertdavidgraham / masscan

TCP port scanner, spews SYN packets asynchronously, scanning entire Internet in under 5 minutes.
GNU Affero General Public License v3.0
23k stars 3.02k forks source link

Memory leak in ՝smack_benchmark՝ function #730

Closed hovhannes-96 closed 8 months ago

hovhannes-96 commented 10 months ago

The memory leak is found by a static analyzer developed at CAST ( https://www.linkedin.com/company/cast-center/).

In src/smack1.c call of malloc allocates and returns dynamic memory which is not freed.