Changeset 49977 in webkit


Ignore:
Timestamp:
Oct 23, 2009 7:07:39 AM (15 years ago)
Author:
benm@google.com
Message:

Fixes a leak in createThreadInternal on Android.
https://bugs.webkit.org/show_bug.cgi?id=30698

Patch by Steve Block <steveblock@google.com> on 2009-10-23
Reviewed by Dmitry Titov.

  • wtf/ThreadingPthreads.cpp: Modified.

(WTF::createThreadInternal): Avoid leaking a ThreadData object on failure.

Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r49955 r49977  
     12009-10-23  Steve Block  <steveblock@google.com>
     2
     3        Reviewed by Dmitry Titov.
     4
     5        Fixes a leak in createThreadInternal on Android.
     6        https://bugs.webkit.org/show_bug.cgi?id=30698
     7
     8        * wtf/ThreadingPthreads.cpp: Modified.
     9        (WTF::createThreadInternal): Avoid leaking a ThreadData object on failure.
     10
    1112009-10-22  Geoffrey Garen  <ggaren@apple.com>
    212
  • trunk/JavaScriptCore/wtf/ThreadingPthreads.cpp

    r48733 r49977  
    168168    if (pthread_create(&threadHandle, 0, runThreadWithRegistration, static_cast<void*>(threadData))) {
    169169        LOG_ERROR("Failed to create pthread at entry point %p with data %p", entryPoint, data);
     170        delete threadData;
    170171        return 0;
    171172    }
Note: See TracChangeset for help on using the changeset viewer.