Assuming you are using the Lazarus IDE, go to Projects->ProjectOptions->Debugging and click the "Use HeapTrc Unit".
Then, run your app with and without the line you are are interested in and see the difference. On Linux, the output appears on the Console output, on Windows (and Mac I think) pops up on a separate window on application close. Its quite important you run that test from time to time....
Davo