Fixed a memory leak in all TCP releated actions that could occur if the TCP session timeout was set to a low value.
Fixed a problem with the session timeout calculation for TCP releated actions. If the value was set above 3 minutes, the calculation became inaccurate and could even cause a TCP session to immediately expire.