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

renderer.c: potential leak #295

Open
luauser32167 opened this issue Dec 30, 2021 · 0 comments
Open

renderer.c: potential leak #295

luauser32167 opened this issue Dec 30, 2021 · 0 comments

Comments

@luauser32167
Copy link

In renderer.c:172, if fopen fails (the font file was not found), then the font variable allocated earlier is not freed.

I think this was the only problem found by clang-analyzer/scan-build.
There are also a bunch of conversion warnings but those are probably harmless.

And thanks for the awesome "cached software renderer" :^).

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