Comment Comment by Sharlin if (--old_val->refcount == 0) It's pre-decrement; the refcount is decremented before comparison. parent Sharlin 10 years ago