diff options
| author | Sebastien Bacher <seb128@ubuntu.com> | 2013-10-24 22:01:02 +0000 |
|---|---|---|
| committer | Tarmac <Unknown> | 2013-10-24 22:01:02 +0000 |
| commit | f4cbf5167b8e99b470c31f92648e7b5961bfce17 (patch) | |
| tree | cf3740156e35bd3cda9842f04c58b7bd17037f51 | |
| parent | 6c9f30f1e5ee6788369e484c6f995802e0da3915 (diff) | |
| parent | e1e4997683838addfd8ecb37a7f8dee117b63b6e (diff) | |
| download | ayatana-indicator-power-f4cbf5167b8e99b470c31f92648e7b5961bfce17.tar.gz ayatana-indicator-power-f4cbf5167b8e99b470c31f92648e7b5961bfce17.tar.bz2 ayatana-indicator-power-f4cbf5167b8e99b470c31f92648e7b5961bfce17.zip | |
Don't leak the g_file_get_contents value, reported by valgrind
.
Approved by Charles Kerr, PS Jenkins bot.
| -rw-r--r-- | src/ib-brightness-control.c | 1 |
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); |
