Assigning a string will cause the previous value to be freed. In this case, 
there is no lock so there is no way to know what threads will see what and 
certainly any threads that did not do the writing may see the old value and 
attempt to deref it after it was freed.

Reply via email to