<commit_before><commit_msg>Update and rename Chapter_18 to Chapter_18/Exercise_18_02/Exercise_18_02.md<commit_after>## Question  
Explain what happens if an exception occurs at the indicated point:  
```cpp
void exercise(int *b, int *e) {
  vector<int> v(b, e);
  int *p  = new int[v.size()];
  ifstream in("ints");
  // exception occurs here
}
```
## Answer  
The destructors for v and in wil be run during the stack unwinding but p will not be deleted so this will cause a memory leak.  
{'fraction_non_alphanumeric': 0.10020449897750511, 'fraction_numerical': 0.024539877300613498, 'mean_word_length': 4.268817204301075, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4928310', 'n_tokens_mistral': 166, 'n_tokens_neox': 154, 'n_words': 63}