[AGENT++] should to be delete here?
OELoo Jerry
oyljerry at hotmail.com
Wed Jan 19 04:26:28 CET 2005
hi all
some code from the agent++' examples:
mib = new Mib();
reqList = new RequestList();
Request* req;
while (run) {
req = reqList->receive(2);
if (req) {
mib->process_request(req);
}
else {
mib->cleanup();
}
}
delete mib;
from above code, we can see the "reqList" have been newed but it has not
been deleted distinctly ? this is why?
is there memory leak here? or it has been deleted in internal?
thanks
any hints will be appreciated !
Jerry
_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn
More information about the AGENTPP
mailing list