GNOME Bugzilla – Bug 525519
Memory leaks when fetching attributes
Last modified: 2008-09-27 08:49:42 UTC
Please describe the problem: There is code like this in several places: retval->_buffer[i] = CORBA_STRING_DUP (g_str_concat (attr->name, ":", attr->value, NULL)); g_str_concat allocates memory that is never freed, since its return value is passed to CORBA_string_dup and then discarded. Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
Created attachment 108405 [details] [review] Patch.
Patch looks obviously correct to me. Can we get this applied, Li ?
What is SPINST for? And I think the leak is not very obvious, I'd like to commit the patch after the freeze.
The SPINST stuff looks like leftover debug spew that should be omitted when committing the patch.