[Issue 14097] root/async.c: free after use

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Jan 31 19:25:25 PST 2015


https://issues.dlang.org/show_bug.cgi?id=14097

--- Comment #3 from Ketmar Dark <ketmar at ketmar.no-ip.org> ---
as i have no github account, i'll answer here:

WalterBright  added a note Feb 1, 2015 
Why this change?

'cause `AsyncRead::dispose` can `free()` aw before loop in `startthread`
completes, and then `startthread` will try to reference already freed memory in
loop condition check. this is very unlikely, but still possible situation. so
we have to cache the value.

--


More information about the Digitalmars-d-bugs mailing list