summaryrefslogtreecommitdiff
path: root/tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'tcp.c')
-rw-r--r--tcp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tcp.c b/tcp.c
index a254b99..ae3d704 100644
--- a/tcp.c
+++ b/tcp.c
@@ -132,6 +132,11 @@ TcpList* tcp_read_list(int sock,const char *tag){
return list;
}
+void tcp_list_destroy(TcpList *list){
+ free(list->items);
+ free(list);
+}
+
static const char* itoa(int n){
static char buf[64];