stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Travis Vitek" <>
Subject RE: [PATCH] test
Date Fri, 28 Sep 2007 20:04:58 GMT

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


View raw message