free localClient->cipher_string, allocated in sslproc.c

==01:17:20:36.919 5966== 280 bytes in 8 blocks are definitely lost in loss record 876 of 1,020
==01:17:20:36.919 5966==    at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==01:17:20:36.919 5966==    by 0x4E93F4F: rb_strdup (rb_memory.h:70)
==01:17:20:36.919 5966==    by 0x4E95280: ssl_process_cipher_string (sslproc.c:476)
==01:17:20:36.919 5966==    by 0x4E95540: ssl_process_cmd_recv (sslproc.c:561)
==01:17:20:36.919 5966==    by 0x4E9582A: ssl_read_ctl (sslproc.c:632)
==01:17:20:36.919 5966==    by 0x56CBAB6: rb_select_epoll (epoll.c:199)
==01:17:20:36.919 5966==    by 0x56C4EB5: rb_select (commio.c:2085)
==01:17:20:36.919 5966==    by 0x56C7FD6: rb_lib_loop (rb_lib.c:228)
==01:17:20:36.919 5966==    by 0x4E69987: charybdis_main (ircd.c:872)
==01:17:20:36.919 5966==    by 0x400815: main (main.c:8)
This commit is contained in:
Simon Arlott 2016-10-30 11:21:02 +00:00
parent 6f3d3cb6f5
commit 2b439b88fc
No known key found for this signature in database
GPG key ID: C8975F2043CA5D24

View file

@ -256,6 +256,8 @@ free_local_client(struct Client *client_p)
if(IsSSL(client_p)) if(IsSSL(client_p))
ssld_decrement_clicount(client_p->localClient->ssl_ctl); ssld_decrement_clicount(client_p->localClient->ssl_ctl);
rb_free(client_p->localClient->cipher_string);
if(IsCapable(client_p, CAP_ZIP)) if(IsCapable(client_p, CAP_ZIP))
ssld_decrement_clicount(client_p->localClient->z_ctl); ssld_decrement_clicount(client_p->localClient->z_ctl);