Hello! I check source code by static analys tool. And get this error.
cppcheck -j4 -q ./ [libsrc/gprim/adtree.cpp:90]: (error) Memory leak: bmin [libsrc/gprim/adtree.cpp:90]: (error) Memory leak: bmax [libsrc/geom2d/geometry2d.cpp:237]: (error) Memory leak: spline [libsrc/geom2d/geometry2d.cpp:472]: (error) Memory leak: spline [libsrc/geom2d/geometry2d.cpp:755]: (error) Memory leak: spline [libsrc/interface/nginterface_v2.cpp:71]: (error) Return value of allocation function 'LoadMesh' is not stored. [libsrc/interface/read_fnf_mesh.cpp:378]: (error) Memory is allocated but not initialized: lt [libsrc/meshing/curvedelems.cpp:2293]: (error) Uninitialized variable: hinfo [libsrc/meshing/improve2gen.cpp:450]: (error) Memory leak: r1 [libsrc/meshing/meshtype.hpp:405]: (error) Array index -1 is out of bounds. [libsrc/occ/occgenmesh.cpp:631]: (error) Null pointer dereference [ng/ngpkg.cpp:2186]: (error) Mismatching allocation and deallocation: buffer [ng/ngpkg.cpp:2639]: (error) Memory leak: elmnts
Can I help, fix this?
Log in to post a comment.
Hello! I check source code by static analys tool. And get this error.
cppcheck -j4 -q ./
[libsrc/gprim/adtree.cpp:90]: (error) Memory leak: bmin
[libsrc/gprim/adtree.cpp:90]: (error) Memory leak: bmax
[libsrc/geom2d/geometry2d.cpp:237]: (error) Memory leak: spline
[libsrc/geom2d/geometry2d.cpp:472]: (error) Memory leak: spline
[libsrc/geom2d/geometry2d.cpp:755]: (error) Memory leak: spline
[libsrc/interface/nginterface_v2.cpp:71]: (error) Return value of allocation function 'LoadMesh' is not stored.
[libsrc/interface/read_fnf_mesh.cpp:378]: (error) Memory is allocated but not initialized: lt
[libsrc/meshing/curvedelems.cpp:2293]: (error) Uninitialized variable: hinfo
[libsrc/meshing/improve2gen.cpp:450]: (error) Memory leak: r1
[libsrc/meshing/meshtype.hpp:405]: (error) Array index -1 is out of bounds.
[libsrc/occ/occgenmesh.cpp:631]: (error) Null pointer dereference
[ng/ngpkg.cpp:2186]: (error) Mismatching allocation and deallocation: buffer
[ng/ngpkg.cpp:2639]: (error) Memory leak: elmnts
Can I help, fix this?