Skip to content

Commit

Permalink
ts_setup: fix a memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
merge committed Sep 19, 2018
1 parent 7e9b3d8 commit cd26eb5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ts_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ static char *scan_devices(void)
if ((ioctl(fd, EVIOCGPROP(sizeof(propbit)), propbit) < 0) ||
!(propbit[BIT_WORD(INPUT_PROP_DIRECT)] &
BIT_MASK(INPUT_PROP_DIRECT))) {
close(fd);
continue;
} else {
have_touchscreen = 1;
Expand Down

0 comments on commit cd26eb5

Please sign in to comment.