https://bugs.documentfoundation.org/show_bug.cgi?id=99659
Bug ID: 99659
Summary: core/desktop/unx/source/pagein.c:69]: (error) Resource
leak: fp
Product: LibreOffice
Version: 5.2.0.0.alpha1
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Base
Assignee: [email protected]
Reporter: [email protected]
Source code is
if ((fp = fopen (fullpath, "r")))
{
if (fgets(&type, 1, fp))
{
fclose(fp);
return type == '1';
}
}
#endif
return 1;
}
fclose is only called if fgets returns non-zero.
Suggest ensure fclose is called under all possible code paths.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs