Martin Sebor wrote: > >I see what you're saying: the other thread will end up overwriting >the data written by the first thread. The newly data should be the >same, so I wonder if this just a benign race condition or if it's >more sinister than that? >
It is a memory leak in the failure case. The block allocated by the first thread will be lost when the pointer is overwritten by the second thread. Travis
