fix leak of stream sources during validation