Skip to content
Quantoros

How do you find memory leaks and invalid accesses with Valgrind?

C++Level: AdvancedDebugging & Tools

How do you find memory leaks and invalid accesses with Valgrind?

Hints
  • Who owns the resource and when does its lifetime end?
  • Check copying, moving, exceptions and use after release.

Answer

This answer is part of mentoring

Advanced questions come with a full breakdown and a mock interview with a working quant researcher. The first call is free.

Source and licence: C/C++ Interview Cheatsheet — Chang Ning Tsai · MIT

Related questions