diff options
author | Luiz Augusto von Dentz <luiz.dentz@indt.org.br> | 2008-08-04 10:03:37 -0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@indt.org.br> | 2008-08-04 10:03:37 -0300 |
commit | e7135f9fd72778d93cd98eef84622cdc51d31c74 (patch) | |
tree | f500ee32999c9811d343d49661eada9e6006e725 /input | |
parent | 42989d7b1914319b97019a5ffa2d4bf1d328feef (diff) |
Fix warnings.
Diffstat (limited to 'input')
-rw-r--r-- | input/device.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/input/device.c b/input/device.c index a9e56223..8f459c1d 100644 --- a/input/device.c +++ b/input/device.c @@ -520,14 +520,14 @@ static int hidp_connadd(bdaddr_t *src, bdaddr_t *dst, } err = ioctl(ctl, HIDPCONNADD, &req); - if (err < 0) + if (err < 0) { + close(ctl); goto cleanup; + } info("New input device %s (%s)", addr, req.name); cleanup: - close(ctl); - if (req.rd_data) free(req.rd_data); |