stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Sebor <>
Subject Re: [PATCH] test
Date Fri, 28 Sep 2007 22:28:22 GMT
Travis Vitek wrote:
> 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.

Got it. Thanks for clarifying it for me!


View raw message