cppcheck analysis of bacula_5.0.1-1.dsc
- ./patches/testing/hash.c:391 [error] - Resource leak: fp
- ./patches/testing/mtops.c:234 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./platforms/freebsd/tapetest.c:370 [error] - Resource leak: rfd
- ./platforms/freebsd/tapetest.c:473 [possible error] - Resource leak: rfd
- ./src/dird/backup.c:851 [possible error] - Resource leak: fd
- ./src/dird/fd_cmds.c:527 [possible error] - Resource leak: ffd
- ./src/filed/restore.c:1476 [error] - Invalid number of character (() when these macros are defined: 'stbernard_implemented'.
- ./src/findlib/match.c:384 [possible error] - Array index out of bounds
- ./src/lib/bregex.c:709 [possible error] - Memory leak: visited
- ./src/lib/bsock.c:62 [error] - Data is allocated but not initialized: bsock
- ./src/lib/bsys.c:445 [possible error] - Resource leak: pidfd
- ./src/lib/dlist.c:392 [error] - Data is allocated but not initialized: jcr_chain
- ./src/lib/htable.c:396 [error] - Data is allocated but not initialized: jcrtbl
- ./src/lib/lockmgr.c:274 [error] - Possible null pointer dereference: jcr
- ./src/lib/lockmgr.c:309 [error] - Possible null pointer dereference: jcr
- ./src/lib/lockmgr.c:331 [error] - Possible null pointer dereference: jcr
- ./src/lib/lockmgr.c:357 [error] - Possible null pointer dereference: jcr
- ./src/lib/lockmgr.c:610 [error] - Possible null pointer dereference: jcr
- ./src/lib/lockmgr.c:638 [error] - Possible null pointer dereference: jcr
- ./src/lib/lockmgr.c:892 [error] - Possible null pointer dereference: jcr
- ./src/lib/rwlock.c:438 [error] - Invalid number of character ({) when these macros are defined: 'TEST_RWLOCK;xxx'.
- ./src/qt-console/console/console.h:156 [possible error] - Memory leak: Console::m_cursor
- ./src/qt-console/job/job.h:56 [possible error] - Memory leak: Job::m_cursor
- ./src/qt-console/jobgraphs/jobplot.cpp:411 [possible error] - Memory leak: mX
- ./src/qt-console/joblist/joblist.cpp:95 [possible error] - Memory leak: gridLayout
- ./src/qt-console/joblog/joblog.h:54 [possible error] - Memory leak: JobLog::m_cursor
- ./src/qt-console/mainwin.cpp:211 [possible error] - Memory leak: joblist
- ./src/qt-console/mainwin.h:146 [possible error] - Memory leak: MainWin::m_currentConsole
- ./src/qt-console/restore/restore.cpp:281 [possible error] - Memory leak: item
- ./src/qt-console/restore/restoretree.cpp:84 [possible error] - Memory leak: gridLayout
- ./src/qt-console/restore/restoretree.cpp:456 [possible error] - Memory leak: item
- ./src/qt-console/testprogs/examp/mainwindow.cpp:97 [possible error] - Memory leak: dlg
- ./src/qt-console/testprogs/examp/mainwindow.h:57 [possible error] - Memory leak: MainWindow::textEdit
- ./src/qt-console/testprogs/examp/mainwindow.h:58 [possible error] - Memory leak: MainWindow::customerList
- ./src/qt-console/testprogs/examp/mainwindow.h:59 [possible error] - Memory leak: MainWindow::paragraphsList
- ./src/qt-console/testprogs/examp/mainwindow.h:67 [possible error] - Memory leak: MainWindow::newLetterAct
- ./src/qt-console/testprogs/examp/mainwindow.h:68 [possible error] - Memory leak: MainWindow::saveAct
- ./src/qt-console/testprogs/examp/mainwindow.h:69 [possible error] - Memory leak: MainWindow::printAct
- ./src/qt-console/testprogs/examp/mainwindow.h:70 [possible error] - Memory leak: MainWindow::undoAct
- ./src/qt-console/testprogs/examp/mainwindow.h:71 [possible error] - Memory leak: MainWindow::aboutAct
- ./src/qt-console/testprogs/examp/mainwindow.h:72 [possible error] - Memory leak: MainWindow::aboutQtAct
- ./src/qt-console/testprogs/examp/mainwindow.h:73 [possible error] - Memory leak: MainWindow::quitAct
- ./src/qt-console/util/fmtwidgetitem.h:170 [possible error] - Memory leak: TreeItemFormatter::wdg
- ./src/qt-console/util/fmtwidgetitem.h:217 [possible error] - Memory leak: TableItemFormatter::last
- ./src/stored/dircmd.c:267 [error] - Possible null pointer dereference: djcr
- ./src/stored/vtape.c:116 [possible error] - Memory leak: tape
- ./src/win32/compat/compat.cpp:163 [possible error] - Array index out of bounds
- ./src/win32/compat/compat.cpp:164 [possible error] - Array index out of bounds
- ./src/win32/compat/compat.cpp:163 [possible error] - Array index out of bounds
- ./src/win32/compat/compat.cpp:164 [possible error] - Array index out of bounds
- ./src/win32/filed/plugins/api.c:86 [error] - Mismatching allocation and deallocation: buf
- ./src/win32/filed/plugins/api.c:95 [error] - Mismatching allocation and deallocation: buf
- ./src/win32/filed/plugins/dbi_node.c:116 [possible error] - Mismatching allocation and deallocation: dbi_node_t::buffer
- ./src/win32/filed/plugins/dbi_node.c:289 [possible error] - Mismatching allocation and deallocation: dbi_node_t::buffer
- ./src/win32/filed/plugins/dbi_node.c:284 [possible error] - Mismatching allocation and deallocation: dbi_node_t::buffer
- ./src/win32/filed/plugins/dbi_node.c:237 [possible error] - Mismatching allocation and deallocation: dbi_node_t::restore_display_name
- ./src/win32/filed/plugins/dbi_node.c:271 [possible error] - Mismatching allocation and deallocation: dbi_node_t::restore_input_streams
- ./src/win32/filed/plugins/node.c:58 [possible error] - Mismatching allocation and deallocation: node_t::name
- ./src/win32/filed/plugins/service_node.c:82 [error] - Mismatching allocation and deallocation: tmp
- ./src/win32/filed/plugins/service_node.c:99 [error] - Mismatching allocation and deallocation: tmp
- ./src/win32/filed/plugins/node.h:164 [possible error] - Memory leak: service_node_t::first_storage_group_node
- ./src/win32/filed/plugins/storage_group_node.c:198 [error] - Mismatching allocation and deallocation: tmp
- ./src/win32/filed/plugins/storage_group_node.c:211 [error] - Mismatching allocation and deallocation: tmp
- ./src/win32/filed/plugins/storage_group_node.c:214 [error] - Mismatching allocation and deallocation: tmp
- ./src/win32/filed/plugins/storage_group_node.c:117 [error] - Mismatching allocation and deallocation: tmp
- ./src/win32/filed/plugins/node.h:138 [possible error] - Memory leak: storage_group_node_t::store_node
- ./src/win32/filed/plugins/node.h:141 [possible error] - Memory leak: storage_group_node_t::logfiles
- ./src/win32/filed/plugins/node.h:144 [possible error] - Memory leak: storage_group_node_t::service_name
- ./src/win32/filed/plugins/node.h:145 [possible error] - Memory leak: storage_group_node_t::storage_group_name
- ./src/win32/filed/plugins/node.h:146 [possible error] - Memory leak: storage_group_node_t::saved_log_path
- ./src/wx-console/wxbconfigfileeditor.h:50 [possible error] - Memory leak: wxbConfigFileEditor::textCtrl
- ./src/wx-console/wxbconfigpanel.h:116 [possible error] - Memory leak: wxbConfigPanel::cfgOk
- ./src/wx-console/wxbconfigpanel.h:117 [possible error] - Memory leak: wxbConfigPanel::cfgCancel
- ./src/wx-console/wxbconfigpanel.h:118 [possible error] - Memory leak: wxbConfigPanel::cfgApply
- ./src/wx-console/wxbmainframe.h:146 [possible error] - Memory leak: wxbMainFrame::ct
- ./src/wx-console/wxbmainframe.h:157 [possible error] - Memory leak: wxbMainFrame::notebook
- ./src/wx-console/wxbmainframe.h:158 [possible error] - Memory leak: wxbMainFrame::consoleCtrl
- ./src/wx-console/wxbmainframe.h:159 [possible error] - Memory leak: wxbMainFrame::helpCtrl
- ./src/wx-console/wxbmainframe.h:160 [possible error] - Memory leak: wxbMainFrame::typeCtrl
- ./src/wx-console/wxbmainframe.h:161 [possible error] - Memory leak: wxbMainFrame::sendButton
- ./src/wx-console/wxbmainframe.h:166 [possible error] - Memory leak: wxbMainFrame::promptparser
- ./src/wx-console/wxbmainframe.h:155 [possible error] - Memory leak: wxbMainFrame::menuFile
- ./src/wx-console/wxbrestorepanel.h:215 [possible error] - Memory leak: wxbRestorePanel::centerSizer
- ./src/wx-console/wxbrestorepanel.h:216 [possible error] - Memory leak: wxbRestorePanel::treelistPanel
- ./src/wx-console/wxbrestorepanel.h:217 [possible error] - Memory leak: wxbRestorePanel::configPanel
- ./src/wx-console/wxbrestorepanel.h:218 [possible error] - Memory leak: wxbRestorePanel::restorePanel
- ./src/wx-console/wxbrestorepanel.h:222 [possible error] - Memory leak: wxbRestorePanel::start
- ./src/wx-console/wxbrestorepanel.h:223 [possible error] - Memory leak: wxbRestorePanel::cancel
- ./src/wx-console/wxbrestorepanel.h:225 [possible error] - Memory leak: wxbRestorePanel::tree
- ./src/wx-console/wxbrestorepanel.h:226 [possible error] - Memory leak: wxbRestorePanel::treeadd
- ./src/wx-console/wxbrestorepanel.h:227 [possible error] - Memory leak: wxbRestorePanel::treeremove
- ./src/wx-console/wxbrestorepanel.h:228 [possible error] - Memory leak: wxbRestorePanel::treerefresh
- ./src/wx-console/wxbrestorepanel.h:230 [possible error] - Memory leak: wxbRestorePanel::list
- ./src/wx-console/wxbrestorepanel.h:231 [possible error] - Memory leak: wxbRestorePanel::listadd
- ./src/wx-console/wxbrestorepanel.h:232 [possible error] - Memory leak: wxbRestorePanel::listremove
- ./src/wx-console/wxbrestorepanel.h:233 [possible error] - Memory leak: wxbRestorePanel::listrefresh
- ./src/wx-console/wxbrestorepanel.h:235 [possible error] - Memory leak: wxbRestorePanel::gauge
- ./src/wx-console/wxbrestorepanel.cpp:593 [possible error] - Memory leak: tableparser
- ./src/wx-console/wxbrestorepanel.cpp:593 [possible error] - Memory leak: dt
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:46:15 +0000, based on results by cppcheck 1.41-modif