1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-24 08:29:04 +00:00

memory releasing patch from Marek

This commit is contained in:
fyodor
2006-07-04 23:04:56 +00:00
parent 41aad8638a
commit 9c0af0a95b
21 changed files with 312 additions and 71 deletions

3
nmap.h
View File

@@ -452,6 +452,7 @@ int ftp_anon_connect(struct ftpinfo *ftp);
/* port manipulators */
void getprobepts(char *expr);
struct scan_lists *getpts(char *expr); /* someone stole the name getports()! */
void free_scan_lists(struct scan_lists *ports);
int getidentinfoz(struct in_addr target, u16 localport, u16 remoteport,
char *owner, int ownersz);
@@ -467,6 +468,8 @@ int listen_icmp(int icmpsock, unsigned short outports[],
/* Renamed main so that interactive mode could preprocess when neccessary */
int nmap_main(int argc, char *argv[]);
void nmap_free_mem();
/* general helper functions */
int parse_targets(struct targets *targets, char *h);
char *statenum2str(int state);