title: Is the C++ `free` function thread-safe?
body: <p>That is, if my C++ application allocates memory in one thread using <code>malloc</code>, will <code>free</code> successfully de-allocate the memory, if called from another thread, or can I expect it to throw an exception?  Both threads belong to the same process.  I am using Visual Studio 2008.  Thanks.</p>