projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b09c75
)
udev-seat: fix leak when failing to add devices
author
Peter Hutterer
<peter.hutterer@who-t.net>
Thu, 5 Dec 2013 08:37:26 +0000
(18:37 +1000)
committer
Jonas Ådahl
<jadahl@gmail.com>
Sat, 7 Dec 2013 12:55:31 +0000
(13:55 +0100)
udev-monitor and the udev_monitor_source would leak.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/udev-seat.c
patch
|
blob
|
history
diff --git
a/src/udev-seat.c
b/src/udev-seat.c
index 9a1ce7aa87ba15045e54baaab7fd9382597396d2..08357f8c8a714ac37dda7e44fd383d5a34027866 100644
(file)
--- a/
src/udev-seat.c
+++ b/
src/udev-seat.c
@@
-227,8
+227,10
@@
udev_input_enable(struct udev_input *input)
return -1;
}
- if (udev_input_add_devices(input, udev) < 0)
+ if (udev_input_add_devices(input, udev) < 0) {
+ udev_input_disable(input);
return -1;
+ }
return 0;
}