Caterpillar interview question

Autosar Questions: Diagnostics C language: Pointers, memory leak.