Fix a memory leak

Signed-off-by: Hodong <hodong@yozmos.com>
This commit is contained in:
Hodong 2022-01-15 02:32:04 +09:00
parent 43fbf03e54
commit ddafdba11f

View File

@ -458,8 +458,9 @@ int _xcb_out_init(_xcb_out *out)
void _xcb_out_destroy(_xcb_out *out) void _xcb_out_destroy(_xcb_out *out)
{ {
pthread_cond_destroy(&out->cond);
pthread_mutex_destroy(&out->reqlenlock); pthread_mutex_destroy(&out->reqlenlock);
pthread_cond_destroy(&out->cond);
pthread_cond_destroy(&out->socket_cond);
} }
int _xcb_out_send(xcb_connection_t *c, struct iovec *vector, int count) int _xcb_out_send(xcb_connection_t *c, struct iovec *vector, int count)