Fix minor resource leak in a function which was introduced by changing an err() to a return in r106254.