summaryrefslogtreecommitdiff
path: root/toxcore/TCP_server.h
diff options
context:
space:
mode:
authorzugz (tox) <mbays+tox@sdf.org>2018-09-29 10:49:52 +0200
committerzugz (tox) <mbays+tox@sdf.org>2018-10-07 20:13:51 +0200
commit5beb00c93d3adb5c23149535624d27c67bc146ea (patch)
tree270dcde41751d421fae86f8f466038c212ed559d /toxcore/TCP_server.h
parentb2b96b1aa19ef2eb2816303e606a3f23550538dc (diff)
Fix memleak in tcp server by wiping priority queues on deletion
Diffstat (limited to 'toxcore/TCP_server.h')
-rw-r--r--toxcore/TCP_server.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/toxcore/TCP_server.h b/toxcore/TCP_server.h
index 1798ebeb..252df9fa 100644
--- a/toxcore/TCP_server.h
+++ b/toxcore/TCP_server.h
@@ -75,6 +75,8 @@ struct TCP_Priority_List {
75 uint8_t data[]; 75 uint8_t data[];
76}; 76};
77 77
78void wipe_priority_list(TCP_Priority_List *p);
79
78typedef struct TCP_Server TCP_Server; 80typedef struct TCP_Server TCP_Server;
79 81
80const uint8_t *tcp_server_public_key(const TCP_Server *tcp_server); 82const uint8_t *tcp_server_public_key(const TCP_Server *tcp_server);