summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2014-06-24 16:34:40 +0200
committerBastien Nocera <hadess@hadess.net>2014-06-24 16:35:06 +0200
commitdbb9bead6d3b9e70a5d58019b1615d2a6fba5312 (patch)
treea54f258bb523959d4e1bdf44d477b5725d5ef157
parent969c97426a868626e8c6289e3a7ff3207fc56624 (diff)
linux: Fix small memleak on startup with Logitech devices
-rw-r--r--src/linux/up-device-unifying.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/linux/up-device-unifying.c b/src/linux/up-device-unifying.c
index b3876e0..1819a8a 100644
--- a/src/linux/up-device-unifying.c
+++ b/src/linux/up-device-unifying.c
@@ -207,8 +207,8 @@ up_device_unifying_coldplug (UpDevice *device)
continue;
/* hidraw device which exposes hiddev interface is our receiver */
- tmp = g_build_filename(g_udev_device_get_sysfs_path (g_udev_device_get_parent(native)),
- "usbmisc", NULL);
+ tmp = g_build_filename (g_udev_device_get_sysfs_path (parent),
+ "usbmisc", NULL);
dir = g_dir_open (tmp, 0, &error);
g_free(tmp);
if (error) {