Cppcheck reports Resource leak in setup_native/source/win32/wintools/makecab/parseddf.c

julien2412 serval2412 at yahoo.fr
Thu Dec 27 06:30:00 PST 2012


Hello,

cppcheck reported this:
[setup_native/source/win32/wintools/makecab/parseddf.c:381]: (error)
Resource leak: ddf
it's in the function ParseDdf
fclose function seems to miss.

(see
http://opengrok.libreoffice.org/xref/core/setup_native/source/win32/wintools/makecab/parseddf.c#356)

I'm not able to build on Windows but I think that adding this line:
fclose (ddf);

before this line:
return DDF_OK;

should be ok.

Someone to confirm?

Julien



--
View this message in context: http://nabble.documentfoundation.org/Cppcheck-reports-Resource-leak-in-setup-native-source-win32-wintools-makecab-parseddf-c-tp4026214.html
Sent from the Dev mailing list archive at Nabble.com.


More information about the LibreOffice mailing list