Question.3
A developer allocates a temporary buffer inside a loop:
void process_messages() {
for (int i = 0; i < 1000; i++) {
uint8_t* buf = new uint8_t[64];
parse_message(buf);
// No delete[] -- forgot!
}
}What happens after this function runs?