lock-plug: Fix string leak
Leak report
128 bytes in 1 blocks are definitely lost in loss record 10,204 of 11,729
at 0x484BE40: realloc (vg_replace_malloc.c:1800)
by 0x5366701: g_realloc (gmem.c:171)
by 0x5382857: g_string_expand (gstring.c:82)
by 0x53828CB: g_string_sized_new (gstring.c:113)
by 0x5382E5B: g_string_new (gstring.c:134)
by 0x5349B34: g_build_path_va (gfileutils.c:1914)
by 0x534B0DC: g_build_filename_va (gfileutils.c:2207)
by 0x534B0DC: g_build_filename (gfileutils.c:2301)
by 0x112F46: set_face_image (gs-lock-plug.c:746)
by 0x112F46: gs_lock_plug_show (gs-lock-plug.c:788)
[...snip...]
Testing
- No issues were detected with Valgrind when testing the patch