MFC r271366 (by mav@):

Fix memory leak, reported by Coverity.