1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-23 07:59:03 +00:00

Fix code style in PortList::freePortMap.

This commit is contained in:
david
2010-02-26 20:58:54 +00:00
parent a42ea72a97
commit e32a406032

View File

@@ -724,10 +724,11 @@ int PortList::forgetPort(u16 portno, u8 protocol) {
/* Just free memory used by PortList::port_map[]. Should be done somewhere /* Just free memory used by PortList::port_map[]. Should be done somewhere
* before closing nmap. */ * before closing nmap. */
void PortList::freePortMap(){ void PortList::freePortMap() {
int proto; int proto;
for(proto=0; proto < PORTLIST_PROTO_MAX; proto++) {
if(port_map[proto]){ for (proto=0; proto < PORTLIST_PROTO_MAX; proto++) {
if (port_map[proto]) {
free(port_map[proto]); free(port_map[proto]);
port_map[proto] = NULL; port_map[proto] = NULL;
} }