Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Linux, FPC] Memory leaks #152

Open
rchastain opened this issue Jul 12, 2022 · 0 comments
Open

[Linux, FPC] Memory leaks #152

rchastain opened this issue Jul 12, 2022 · 0 comments

Comments

@rchastain
Copy link

Hello!

I rewrote in Pascal several C++ examples and games: SplashKit Pascal examples

When I compile with -gh option, I see that all the programs have memory leaks. I don't know whether it comes from the library or from my programs.

Even this very simple example has a (small) memory leak.

[roland@localhost drawing]$ skm fpc program -ghl
Free Pascal Compiler version 3.2.0 [2020/07/05] for x86_64
Copyright (c) 1993-2020 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling program.pas
Linking program
16 lines compiled, 0.4 sec
🎉  fpc command run successfully 🎉
[roland@localhost drawing]$ ./program
Heap dump by heaptrc unit of /home/roland/Documents/pascal/splashkit/drawing/program
5 memory blocks allocated : 88/96
4 memory blocks freed     : 73/80
1 unfreed memory blocks : 15
True heap size : 65536
True free heap : 65312
Should be : 65328
Call trace for block $00007F2624A3B2C0 size 15

Regards.

Roland

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant