Plug a leak in write-shared