Fix string leak in helper_get_value
Leak report
128 bytes in 1 blocks are definitely lost in loss record 5,073 of 5,490
at 0x484BE40: realloc (vg_replace_malloc.c:1800)
by 0x59B3701: g_realloc (gmem.c:171)
by 0x59CF857: g_string_expand (gstring.c:82)
by 0x59CF8CB: g_string_sized_new (gstring.c:113)
by 0x59CFE5B: g_string_new (gstring.c:134)
by 0x5A02860: g_spawn_sync_impl (gspawn-posix.c:262)
by 0x59CC36A: g_spawn_sync (gspawn.c:152)
by 0x59CC797: g_spawn_command_line_sync (gspawn.c:589)
by 0x12F6D6: helper_get_value (xfpm-brightness-polkit.c:86)
by 0x12F84A: xfpm_brightness_polkit_setup (xfpm-brightness-polkit.c:117)
by 0x12D6F3: xfpm_brightness_new (xfpm-brightness.c:96)
by 0x123E0E: xfpm_backlight_init (xfpm-backlight.c:372)
[...snip...]
Testing
- No issues were detected with Valgrind when testing the patch