Skip to content

Commit

Permalink
im: fix fd leak on keymap
Browse files Browse the repository at this point in the history
  • Loading branch information
xdavidwu committed Apr 3, 2021
1 parent 1111c22 commit 63fc089
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions im.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ static void handle_keymap(void *data, struct zwp_input_method_keyboard_grab_v2
format, fd, size);
wl_display_roundtrip(state->display);
}
close(fd);
munmap(keymap_string, size);
}

Expand Down

0 comments on commit 63fc089

Please sign in to comment.