mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Fix a memory leak in NSE's bind function
This commit is contained in:
parent
9a155c269d
commit
3ecd0452d5
1 changed files with 1 additions and 0 deletions
|
|
@ -818,6 +818,7 @@ static int l_bind (lua_State *L)
|
|||
nu->source_addrlen = results->ai_addrlen;
|
||||
memcpy(&nu->source_addr, results->ai_addr, nu->source_addrlen);
|
||||
|
||||
freeaddrinfo(results);
|
||||
return nseU_success(L);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue