diff options
author | Mattias Andrée <maandree@kth.se> | 2018-01-24 23:14:20 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2018-01-24 23:14:20 +0100 |
commit | b462de243a5364e6d6d4b07dced941d741f0ad7a (patch) | |
tree | abcbf73107ebd8d0978ac5f6c86a58338d168ff3 | |
parent | First commit (diff) | |
download | xkbdbind-b462de243a5364e6d6d4b07dced941d741f0ad7a.tar.gz xkbdbind-b462de243a5364e6d6d4b07dced941d741f0ad7a.tar.bz2 xkbdbind-b462de243a5364e6d6d4b07dced941d741f0ad7a.tar.xz |
Fix memory leak (P.S. I hate XCB's memory management)
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | xkbdbind.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |