aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--xkbdbind.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xkbdbind.c b/xkbdbind.c
index 6df0520..f012df3 100644
--- a/xkbdbind.c
+++ b/xkbdbind.c
@@ -134,7 +134,7 @@ main(int argc, char *argv[])
next_e = xcb_poll_for_event(xconn);
if (suppress > 0) {
suppress = 0;
- continue;
+ goto next;
}
switch (e->response_type & ~0x80) {
case XCB_KEY_RELEASE:
@@ -157,6 +157,8 @@ main(int argc, char *argv[])
}
break;
}
+ next:
+ free(e);
}
perror(argv0);