GNOME Bugzilla – Bug 722357
gio: fix small memory leak on local xattr
Last modified: 2015-01-14 08:49:55 UTC
g_strconcat() allocates memory, it needs to be freed. ==10653== 1,400 bytes in 50 blocks are definitely lost in loss record 1,838 of 1,851 ==10653== at 0x4A0645D: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==10653== by 0x54ACB22: g_malloc (gmem.c:102) ==10653== by 0x54ACE4D: g_malloc_n (gmem.c:343) ==10653== by 0x54C8463: g_strconcat (gstrfuncs.c:589) ==10653== by 0x4D6ED38: get_xattrs_from_fd (glocalfileinfo.c:660) ==10653== by 0x4D71622: _g_local_file_info_get_from_fd (glocalfileinfo.c:2028) ==10653== by 0x4D731A0: g_local_file_input_stream_query_info (glocalfileinputstream.c:356) ==10653== by 0x4C996D8: g_file_input_stream_query_info (gfileinputstream.c:148) ==10653== by 0x4C863F6: file_copy_fallback (gfile.c:3120) ==10653== by 0x4C86DD2: g_file_copy (gfile.c:3398)
Created attachment 266488 [details] [review] gio: fix small memory leak on local xattr
Attachment 266488 [details] pushed as d3c729b - gio: fix small memory leak on local xattr
(In reply to comment #1) > Created an attachment (id=266488) [details] [review] > gio: fix small memory leak on local xattr I need to test this patch ? Please attach a test case for the same or tell me how can i test this patch.