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

Handle leak in cups-pdf.c #10

Open
sminux opened this issue May 14, 2024 · 0 comments
Open

Handle leak in cups-pdf.c #10

sminux opened this issue May 14, 2024 · 0 comments

Comments

@sminux
Copy link

sminux commented May 14, 2024

The bug was detected via svace1 static analyzer scanning.

The handle 'fpdest' is created at

fpdest=fopen(spoolfile, "w");

by calling function 'fopen' and lost at
return 1;

Do we need (void) fclose(fpdest); before return?

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