Fixed memory leak in update_work module.