cppcheck analysis of openmx_3.2.4.dfsg-3.dsc
- ./source/Band_DFT_Dosout.c:3537 [possible error] - Resource leak: fp_ev
- ./source/Band_DFT_Dosout.c:3537 [possible error] - Resource leak: fp_eig
- ./source/Band_DFT_Dosout.c:4809 [possible error] - Resource leak: fp_ev
- ./source/Band_DFT_Dosout.c:4809 [possible error] - Resource leak: fp_eig
- ./source/Band_DFT_NonCol.c:2654 [possible error] - Memory leak: is1
- ./source/Band_DFT_NonCol.c:2654 [possible error] - Memory leak: ie1
- ./source/Band_DFT_NonCol.c:2654 [possible error] - Memory leak: is12
- ./source/Band_DFT_NonCol.c:2654 [possible error] - Memory leak: ie12
- ./source/Band_DFT_NonCol.c:2654 [possible error] - Memory leak: is2
- ./source/Band_DFT_NonCol.c:2654 [possible error] - Memory leak: ie2
- ./source/Band_DFT_NonCol.c:2654 [possible error] - Memory leak: stat_send
- ./source/Band_DFT_NonCol.c:2654 [possible error] - Memory leak: request_send
- ./source/Band_DFT_NonCol.c:2654 [possible error] - Memory leak: request_recv
- ./source/Band_DFT_kpath.c:548 [error] - Memory leak: M1
- ./source/Band_DFT_kpath.c:548 [error] - Memory leak: koS
- ./source/Band_DFT_kpath.c:548 [error] - Memory leak: ik_list
- ./source/Band_DFT_kpath.c:548 [error] - Memory leak: i_perk_list
- ./source/Band_DFT_kpath.c:1161 [error] - Memory leak: M1
- ./source/Band_DFT_kpath.c:1161 [error] - Memory leak: koS
- ./source/Band_DFT_kpath.c:1161 [error] - Memory leak: ik_list
- ./source/Band_DFT_kpath.c:1161 [error] - Memory leak: i_perk_list
- ./source/Cluster_DFT_Dosout.c:839 [possible error] - Resource leak: fp_opt
- ./source/DFT.c:1854 [possible error] - Memory leak: ko
- ./source/DFT.c:1854 [possible error] - Memory leak: BLAS_S
- ./source/DFT.c:1854 [possible error] - Memory leak: H1_Band_Col
- ./source/DFT.c:1854 [possible error] - Memory leak: S1_Band_Col
- ./source/DFT.c:1854 [possible error] - Memory leak: CDM1_Band_Col
- ./source/DFT.c:1854 [possible error] - Memory leak: EDM1_Band_Col
- ./source/DFT.c:1854 [possible error] - Memory leak: T_k_op
- ./source/DFT.c:1854 [possible error] - Memory leak: T_KGrids1
- ./source/DFT.c:1854 [possible error] - Memory leak: T_KGrids2
- ./source/DFT.c:1854 [possible error] - Memory leak: T_KGrids3
- ./source/Divide_Conquer.c:83 [error] - Uninitialized variable: time0
- ./source/Divide_Conquer_Dosout.c:64 [error] - Uninitialized variable: time0
- ./source/DosMain.c:1380 [error] - Resource leak: fp_Dos
- ./source/Force.c:1971 [possible error] - Memory leak: Snd_iDM0_Size
- ./source/Force.c:1971 [possible error] - Memory leak: Rcv_iDM0_Size
- ./source/GDivide_Conquer.c:77 [error] - Uninitialized variable: time0
- ./source/GDivide_Conquer_Dosout.c:62 [error] - Uninitialized variable: time0
- ./source/Krylov.c:126 [error] - Uninitialized variable: time0
- ./source/Krylov_Dosout.c:112 [error] - Uninitialized variable: time0
- ./source/Lapack_LU_inverse.c:78 [error] - Memory leak: ipiv
- ./source/Lapack_LU_inverse.c:78 [error] - Memory leak: B
- ./source/Lapack_LU_inverse.c:78 [error] - Memory leak: C
- ./source/MD_pac.c:1046 [error] - Memory leak: A
- ./source/MD_pac.c:1046 [error] - Memory leak: B
- ./source/MD_pac.c:1046 [error] - Memory leak: work
- ./source/MD_pac.c:1046 [error] - Memory leak: ipiv
- ./source/Mio_tester.c:168 [error] - Memory leak: V1
- ./source/Occupation_Number_LDA_U.c:4469 [possible error] - Resource leak: fp_DM_onsite
- ./source/Occupation_Number_LDA_U.c:4715 [possible error] - Resource leak: fp_DM_onsite
- ./source/RecursionS_D.c:1846 [error] - Invalid number of character (() when these macros are defined: ''.
- ./source/SCF2File.c:284 [possible error] - Resource leak: fp
- ./source/SetPara_DFT.c:1195 [possible error] - Memory leak: Vcore
- ./source/SetPara_DFT.c:1008 [error] - Memory leak: phi2
- ./source/Set_Vpot.c:433 [possible error] - Memory leak: Snd_Size
- ./source/Set_Vpot.c:433 [possible error] - Memory leak: Rcv_Size
- ./source/TRAN_Deallocate_SurfOverlap.c:20 [error] - Uninitialized variable: side
- ./source/TRAN_Output_Trans_HS.c:396 [possible error] - Resource leak: fp
- ./source/TRAN_Output_Transmission.c:123 [possible error] - Resource leak: fp
- ./source/TRAN_Print.c:148 [error] - Resource leak: fp
- ./source/XC_Ceperly_Alder.c:71 [error] - Uninitialized variable: result
- ./source/bandgnu13.c:349 [error] - Undefined behaviour: fname is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./source/polB.c:956 [possible error] - Memory leak: AB_Nk2
- ./source/polB.c:956 [possible error] - Memory leak: AB_Nk3
- ./source/test2.c:150 [error] - Memory leak: T_KGrids1
- ./source/test2.c:150 [error] - Memory leak: T_KGrids2
- ./source/test2.c:150 [error] - Memory leak: T_KGrids3
- ./source/test2.c:150 [error] - Memory leak: Ti_KGrids1
- ./source/test2.c:150 [error] - Memory leak: Tj_KGrids2
- ./source/test2.c:150 [error] - Memory leak: Tk_KGrids3
- ./source/test2.c:150 [error] - Memory leak: KGrids1
- ./source/test2.c:150 [error] - Memory leak: KGrids2
- ./source/test2.c:150 [error] - Memory leak: KGrids3
- ./source/truncation.c:4360 [possible error] - Resource leak: fp
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Thu, 16 Dec 2010 05:59:45 +0000, based on results by cppcheck 1.41-modif