aboutsummaryrefslogtreecommitdiff
path: root/src/ib-brightness-control.c
diff options
context:
space:
mode:
authorSebastien Bacher <seb128@ubuntu.com>2013-10-24 16:13:57 -0400
committerSebastien Bacher <seb128@ubuntu.com>2013-10-24 16:13:57 -0400
commite1e4997683838addfd8ecb37a7f8dee117b63b6e (patch)
treecf3740156e35bd3cda9842f04c58b7bd17037f51 /src/ib-brightness-control.c
parent6c9f30f1e5ee6788369e484c6f995802e0da3915 (diff)
downloadayatana-indicator-power-e1e4997683838addfd8ecb37a7f8dee117b63b6e.tar.gz
ayatana-indicator-power-e1e4997683838addfd8ecb37a7f8dee117b63b6e.tar.bz2
ayatana-indicator-power-e1e4997683838addfd8ecb37a7f8dee117b63b6e.zip
Don't leak the g_file_get_contents value, reported by valgrind
Diffstat (limited to 'src/ib-brightness-control.c')
-rw-r--r--src/ib-brightness-control.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ib-brightness-control.c b/src/ib-brightness-control.c
index ddc82e5..4fb6bc5 100644
--- a/src/ib-brightness-control.c
+++ b/src/ib-brightness-control.c
@@ -126,6 +126,7 @@ ib_brightness_control_get_value_from_file (IbBrightnessControl *self, const gcha
g_error_free (error);
} else {
value = atoi (svalue);
+ g_free (svalue);
}
g_free (filename);