Opened 7 years ago

Closed 7 years ago

#5839 closed Bugs (fixed)

thread.cpp: ThreadProxy leaks on exceptions

Reported by: noloader@… Owned by: viboes
Milestone: Boost 1.49.0 Component: thread
Version: Boost 1.47.0 Severity: Problem
Keywords: Cc: viboes


If something goes wrong in ThreadProxy? (such as fetching the return value), the ThreadProxyData? could be leaked.

    ThreadProxyData* data=reinterpret_cast<ThreadProxyData*>(args);
    DWORD ret=data->start_address_(data->arglist_);
    delete data;
    return ret;

Change History (5)

comment:1 Changed 7 years ago by Jeffrey Walton <noloader@…>

Component: Nonethread
Owner: set to Anthony Williams

comment:2 Changed 7 years ago by viboes

Cc: viboes added
Owner: changed from Anthony Williams to viboes
Status: newassigned

Where exactly is the memory leak?

comment:3 Changed 7 years ago by viboes

Oh, I see now. The use function can throw :(

I will try to take care of this soon.

Last edited 7 years ago by viboes (previous) (diff)

comment:4 Changed 7 years ago by viboes

Milestone: To Be DeterminedBoost 1.49.0

Committed in trunk at #75860

comment:5 Changed 7 years ago by viboes

Resolution: fixed
Status: assignedclosed

Committed in release at #76345

Note: See TracTickets for help on using tickets.