Fixed memory leaks

This commit is contained in:
Arnout Engelen
2005-01-15 15:03:20 +00:00
parent 4ce9f4fb1f
commit a142648f45
8 changed files with 112 additions and 68 deletions

View File

@@ -31,6 +31,7 @@ void PackList::add (Packet * p)
return;
}
/* store copy of packet, so that original may be freed */
content = new PackListNode(new Packet (*p), content);
}
@@ -60,6 +61,7 @@ u_int32_t PackList::sumanddel (timeval t)
return retval;
}
/* packet may be deleted by caller */
Connection::Connection (Packet * packet)
{
if (ROBUST)