i3lock-color

The world's most popular non-default computer lockscreen.
Index Commits Files Refs README LICENSE
commit 44aae234930412f88ae694defc30418d891e7f63
parent 58b6f3ba963fba2dc6ccf5fe6e011d3f7e5cbcf6
Author: André Marçais <pex@marcais.net>
Date:   Tue,  2 Jun 2020 11:29:46 -0400

Fixed forgetting to free in xcb_get_key_group_index.

Diffstat:
Mxcb.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/xcb.c b/xcb.c
@@ -542,7 +542,9 @@ uint8_t xcb_get_key_group_index(xcb_connection_t *conn) {
     xcb_xkb_get_state_reply_t* reply = NULL;
     cookie = xcb_xkb_get_state(conn, XCB_XKB_ID_USE_CORE_KBD);
     reply = xcb_xkb_get_state_reply(conn, cookie, NULL);
-    return reply->group;
+    uint8_t ans = reply->group;
+    free(reply);
+    return ans;
 }