Opened 12 years ago

Closed 12 years ago

#1905 closed Enhancement (invalid)

checked the source with static code analyis tool, it brought up issues

Reported by: ettl.martin Owned by:
Priority: Low Milestone: None Set
Component: Transmission Version: 1.51
Severity: Minor Keywords:
Cc:

Description

cppcheck -q -j 3 -f -a -v transmission-1.51/ [transmission-1.51/gtk/main.c:401]: (all) Memory leak: cbdata [transmission-1.51/libtransmission/ggets.c:62]: (error) Memory leak: temp [transmission-1.51/third-party/libevent/buffer.c:291]: (error) Memory leak: newbuf [transmission-1.51/wx/xmission.cc:189]: (all) Memory leak: MyFrame::myTorrentStats [transmission-1.51/wx/xmission.cc:194]: (all) Memory leak: MyFrame::mySpeedStats

I used the static code analyis tool cppcheck

Change History (1)

comment:1 Changed 12 years ago by charles

  • Resolution set to invalid
  • Status changed from new to closed

[transmission-1.51/gtk/main.c:401]: (all) Memory leak: cbdata

cbdata is not leaked. it's freed in quitThreadFunc()

[transmission-1.51/libtransmission/ggets.c:62]: (error) Memory leak: temp

temp is not leaked. it's freed in _tr_blocklistSetContent()

[transmission-1.51/third-party/libevent/buffer.c:291]: (error) Memory leak: newbuf

is simply an incorrect error message

[transmission-1.51/wx/xmission.cc:189]: (all) Memory leak: MyFrame::myTorrentStats [transmission-1.51/wx/xmission.cc:194]: (all) Memory leak: MyFrame::mySpeedStats

These are correct, but the wx client was only a prototype and was removed from svn in r8042.

Note: See TracTickets for help on using tickets.