From ddafdba11f6919e6fcf977c09c78b06f94de47aa Mon Sep 17 00:00:00 2001 From: Hodong Date: Sat, 15 Jan 2022 02:32:04 +0900 Subject: Fix a memory leak Signed-off-by: Hodong --- src/xcb_out.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/xcb_out.c b/src/xcb_out.c index 8ffc03f..a4fe823 100644 --- a/src/xcb_out.c +++ b/src/xcb_out.c @@ -458,8 +458,9 @@ int _xcb_out_init(_xcb_out *out) void _xcb_out_destroy(_xcb_out *out) { - pthread_cond_destroy(&out->cond); 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) -- cgit v1.2.3