If I detach an NSThread will Cocoa run it in a separate memory heap or memory zone? For example, if I were to detach a thread, use malloc to create a large buffer, and then let the thread exit, would I get that memory back in some kind of automatic thread cleanup, or would it be leaked?
What about if I used a POSIX thread (pthread) instead?
Note that I'm not interested in ObjC allocs or autorelease pools, I'm talking about low-level buffers e.g. int * foo = malloc(100000);