Modify

Opened 6 years ago

Closed 6 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

Description

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

DWORD WINAPI ThreadProxy(LPVOID args)
{
    ThreadProxyData* data=reinterpret_cast<ThreadProxyData*>(args);
    DWORD ret=data->start_address_(data->arglist_);
    delete data;
    return ret;
}

Attachments (0)

Change History (5)

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

Component: Nonethread
Owner: set to Anthony Williams

comment:2 Changed 6 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 6 years ago by viboes

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

I will try to take care of this soon.

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

comment:4 Changed 6 years ago by viboes

Milestone: To Be DeterminedBoost 1.49.0

Committed in trunk at #75860

comment:5 Changed 6 years ago by viboes

Resolution: fixed
Status: assignedclosed

Committed in release at #76345

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain viboes.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.