[Mono-bugs] [Bug 527902] New: Setting Thread.CurrentUICulture causes memory leak

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Aug 4 06:01:22 EDT 2009


           Summary: Setting Thread.CurrentUICulture causes memory leak
    Classification: Mono
           Product: Mono: Runtime
           Version: SVN
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: a.buriak at it-territory.ru
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

SVN revision used: 139316

Steps to reproduce the problem:
1. create thread
2. call createdThread.CurrentUICulture = /* any culture */;
2. join thread
2. check memory leaks

Actual Results:
Memory leak caused by:
/mono/metadata/threads.c:1326 this->serialized_ui_culture_info = g_new0
(guint8, mono_array_length (arr));

Expected Results:
No leaks :)

Additional Information:
To fix the bug add next lines into /mono/metadata/threads.c function
thread_cleanup() (for example at line 547):

    if (thread->serialized_ui_culture_info)
        g_free (thread->serialized_ui_culture_info);

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list