Select Answer
buf is leaked -- without virtual destructor, delete via base pointer calls only IDriver's destructor; UART destructor (which frees buf) never runs
buf
IDriver
UART
Compilation error
The compiler detects the missing virtual destructor
buf is properly freed