Diff between bb14a8b18f9462aade345cb0529957b152b75db9 and 4784f58ff0ecffb4781e161574a67e26a674cbf0

Changed Files

File Additions Deletions Status
profiles/input/hog.c +1 -1 modified
profiles/input/manager.c +1 -1 modified

Full Patch

diff --git a/profiles/input/hog.c b/profiles/input/hog.c
index f5d24aa..1f5b82b 100644
--- a/profiles/input/hog.c
+++ b/profiles/input/hog.c
@@ -259,7 +259,7 @@ static void hog_read_config(void)
 	if (!err) {
 		DBG("input.conf: UserspaceHID=%s", uhid_enabled);
 		uhid_state_persist = strcasecmp(uhid_enabled, "persist") == 0;
-		free(uhid_enabled);
+		g_free(uhid_enabled);
 	} else
 		g_clear_error(&err);
 
diff --git a/profiles/input/manager.c b/profiles/input/manager.c
index d0db13f..b0e415f 100644
--- a/profiles/input/manager.c
+++ b/profiles/input/manager.c
@@ -101,7 +101,7 @@ static int input_init(void)
 		if (!err) {
 			DBG("input.conf: UserspaceHID=%s", uhid_enabled);
 			input_set_userspace_hid(uhid_enabled);
-			free(uhid_enabled);
+			g_free(uhid_enabled);
 		} else
 			g_clear_error(&err);