commit 447f655db3817656bdbda76d1d9a519187ae06c8
parent c6ca5832d4330a14baef85765233008bfb2e3e22
Author: Maarten van Gompel <proycon@anaproy.nl>
Date: Tue, 24 Aug 2021 09:36:13 +0200
fix memory leak
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/main.c b/main.c
@@ -292,6 +292,7 @@ create_and_upload_keymap(const char * name, uint32_t comp_unichr, uint32_t comp_
strcpy(ptr, keymap_str);
zwp_virtual_keyboard_v1_keymap(
keyboard.vkbd, WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1, keymap_fd, keymap_size);
+ free((void*) keymap_str);
}
int