Open sminux opened 6 months ago
The bug was detected via svace1 static analyzer scanning.
The handle 'fpdest' is created at https://github.com/alexivkin/CUPS-PDF-to-PDF/blob/c14428c2ca8e95371daad7db6d11c84046b1a2d4/cups-pdf.c#L718 by calling function 'fopen' and lost at https://github.com/alexivkin/CUPS-PDF-to-PDF/blob/c14428c2ca8e95371daad7db6d11c84046b1a2d4/cups-pdf.c#L727
Do we need (void) fclose(fpdest); before return?
(void) fclose(fpdest);
The bug was detected via svace1 static analyzer scanning.
The handle 'fpdest' is created at https://github.com/alexivkin/CUPS-PDF-to-PDF/blob/c14428c2ca8e95371daad7db6d11c84046b1a2d4/cups-pdf.c#L718 by calling function 'fopen' and lost at https://github.com/alexivkin/CUPS-PDF-to-PDF/blob/c14428c2ca8e95371daad7db6d11c84046b1a2d4/cups-pdf.c#L727
Do we need
(void) fclose(fpdest);
before return?