Fix minor memory leak when updating a job's name.