[Xorp-cvs] XORP cvs commit: xorp/ospf

Atanu Ghosh atanu at icir.org
Thu Nov 20 16:07:55 PST 2008


CVSROOT:	/usr/local/www/data/cvs
Module name:	xorp
Changes by:	atanu at chum.icir.org	2008-11-21 00:07:55 UTC

XORP CVS repository


Modified files:
	ospf          auth.hh 

Log message:
	Add a destructor to the Auth class to free the memory for the
	_auth_handler. Should solve this issue detected by valgrind.
	
	==9545== 16 bytes in 2 blocks are definitely lost in loss record 1 of 34
	==9545==    at 0x4023294: operator new(unsigned) (vg_replace_malloc.c:224)
	==9545==    by 0x80CC825: Auth::set_method(std::string const&) (auth.hh:565)
	==9545==    by 0x80CCA21: Auth::Auth(EventLoop&) (auth.hh:555)
	==9545==    by 0x80CD1FC: Peer<IPv4>::Peer(Ospf<IPv4>&, PeerOut<IPv4>&, unsigned, OspfTypes::AreaType) (peer.hh:572)
	==9545==    by 0x80CD5DF: PeerOut<IPv4>::PeerOut(Ospf<IPv4>&, std::string, std::string, unsigned, IPv4, OspfTypes::LinkType,
	unsigned, OspfTypes::AreaType) (peer.cc:111)
	==9545==    by 0x80A12CC: PeerManager<IPv4>::create_peer(std::string const&, std::string const&, IPv4, OspfTypes::LinkType, u
	nsigned) (peer_manager.cc:490)
	=
	=9545==    by 0x810C064: XrlOspfV2Target::ospfv2_0_1_create_peer(std::string const&, std::string const&, IPv4 const&, std::st
	ring const&, IPv4 const&) (xrl_target.cc:578)
	==9545==    by 0x8194B3C: XrlOspfv2TargetBase::handle_ospfv2_0_1_create_peer(XrlArgs const&, XrlArgs*) (ospfv2_base.cc:521)
	==9545==    by 0x8198630: XorpMemberCallback2B0<XrlCmdError const, XrlOspfv2TargetBase, XrlArgs const&, XrlArgs*>::dispatch(X
	rlArgs const&, XrlArgs*) (callback_nodebug.hh:4616)
	==9545==    by 0x828BE12: XrlCmdEntry::dispatch(XrlArgs const&, XrlArgs*) const (xrl_cmd_map.hh:43)
	==9545==    by 0x8292857: XrlDispatcher::dispatch_xrl_fast(XrlDispatcher::XI const&, XrlArgs&) const (xrl_dispatcher.cc:83)
	==9545==    by 0x829B98A: STCPRequestHandler::do_dispatch(unsigned char const*, unsigned, XrlArgs&) (xrl_pf_stcp.cc:264)
	==9545==    by 0x829BA49: STCPRequestHandler::dispatch_request(unsigned, bool, unsigned char const*, unsigned) (xrl_pf_stcp.c
	c:276)
	==9545==    by 0x829C099: STCPRequestHandler::read_event(BufferedAsyncReader*, BufferedAsyncReader::Event, unsigned char*, un
	signed) (xrl_pf_stcp.cc:210)
	==9545==    by 0x829DA1D: XorpMemberCallback4B0<void, STCPRequestHandler, BufferedAsyncReader*, BufferedAsyncReader::Event, u
	nsigned char*, unsigned>::dispatch(BufferedAsyncReader*, BufferedAsyncReader::Event, unsigned char*, unsigned) (callback_node
	bug.hh:8966)
	==9545==    by 0x82C6B90: BufferedAsyncReader::announce_event(BufferedAsyncReader::Event) (buffered_asyncio.cc:261)
	==9545==    by 0x82C6F34: BufferedAsyncReader::io_event(XorpFd, IoEventType) (buffered_asyncio.cc:214)
	==9545==    by 0x82C77F9: XorpMemberCallback2B0<void, BufferedAsyncReader, XorpFd, IoEventType>::dispatch(XorpFd, IoEventType
	) (callback_nodebug.hh:4636)
	==9545==    by 0x82DA8B7: SelectorList::Node::run_hooks(SelectorMask, XorpFd) (selector.cc:172)
	==9545==    by 0x82D984B: SelectorList::wait_and_dispatch(TimeVal&) (selector.cc:483)
	==9545==
	
	Bugzilla URL:   http://bugzilla.xorp.org/bugzilla/show_bug.cgi?id=832

Revision  Changes                               Path
1.16      +8 -1;  commitid: 17dc24925fbdb41a7;  xorp/ospf/auth.hh



More information about the Xorp-cvs mailing list