diff options
author | zugz (tox) <mbays+tox@sdf.org> | 2018-09-29 10:49:52 +0200 |
---|---|---|
committer | zugz (tox) <mbays+tox@sdf.org> | 2018-10-07 20:13:51 +0200 |
commit | 5beb00c93d3adb5c23149535624d27c67bc146ea (patch) | |
tree | 270dcde41751d421fae86f8f466038c212ed559d /toxcore/TCP_server.h | |
parent | b2b96b1aa19ef2eb2816303e606a3f23550538dc (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.h | 2 |
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 | ||
78 | void wipe_priority_list(TCP_Priority_List *p); | ||
79 | |||
78 | typedef struct TCP_Server TCP_Server; | 80 | typedef struct TCP_Server TCP_Server; |
79 | 81 | ||
80 | const uint8_t *tcp_server_public_key(const TCP_Server *tcp_server); | 82 | const uint8_t *tcp_server_public_key(const TCP_Server *tcp_server); |