diff options
-rw-r--r-- | modules/devices/battery.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/devices/battery.c b/modules/devices/battery.c index cbcebb12..9994cfd8 100644 --- a/modules/devices/battery.c +++ b/modules/devices/battery.c @@ -229,11 +229,11 @@ read_contents(const gchar *base, const gchar *key) return NULL; if (!g_file_get_contents(path, &value, NULL, NULL)) { - free(path); + g_free(path); return NULL; } - free(path); + g_free(path); return g_strchomp(value); } |