Add free_connect_ports_list().

Michael
This commit is contained in:
Michael Adam 2009-12-06 23:59:46 +01:00
parent 4c0a4d985f
commit fa073543c4
2 changed files with 9 additions and 0 deletions

View File

@ -67,3 +67,11 @@ int check_allowed_connect_ports (int port, vector_t connect_ports)
return 0;
}
/**
* Free a connect_ports list.
*/
void free_connect_ports_list (vector_t connect_ports)
{
vector_delete (connect_ports);
}

View File

@ -26,5 +26,6 @@
extern void add_connect_port_allowed (int port, vector_t *connect_ports);
int check_allowed_connect_ports (int port, vector_t connect_ports);
void free_connect_ports_list (vector_t connect_ports);
#endif /* _TINYPROXY_CONNECT_PORTS_ */