For other readers with a similar problem (I had the same, but my compiler options, where good): It turns out that valgrind needs a path to the executable, if you don’t give it, then it will work fine, but it won’t give you a number lines. In my case, the executable was in another directory that was in my PATH, but in order to get information about the line that I had to run
valgrind --leak-check = full path_to_myprogram / myprogram
source
share