summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-12-06 23:59:46 +0100
committerMichael Adam <obnox@samba.org>2009-12-07 00:22:52 +0100
commitfa073543c4705e92cc390adfb823b1dfa525c4d9 (patch)
tree0d5c91f80c21bcc1b579eef3876b9b48cab32fca /src
parent4c0a4d985f6067a4235bd6cf38f704f28d4858f0 (diff)
downloadtinyproxy-fa073543c4705e92cc390adfb823b1dfa525c4d9.tar.gz
tinyproxy-fa073543c4705e92cc390adfb823b1dfa525c4d9.zip
Add free_connect_ports_list().
Michael
Diffstat (limited to '')
-rw-r--r--src/connect-ports.c8
-rw-r--r--src/connect-ports.h1
2 files changed, 9 insertions, 0 deletions
diff --git a/src/connect-ports.c b/src/connect-ports.c
index b002690..1aaacf8 100644
--- a/src/connect-ports.c
+++ b/src/connect-ports.c
@@ -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);
+}
diff --git a/src/connect-ports.h b/src/connect-ports.h
index 09aa350..4b3aaf7 100644
--- a/src/connect-ports.h
+++ b/src/connect-ports.h
@@ -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_ */