# HG changeset patch # User Tom Goff # Date 1390192437 28800 # Node ID 1a3f236a7aefe64a70c84b6d4bff4bc7e646ded2 # Parent 2a29a9bd6fd65d9ef37d264ba773909d8c1854dd Deallocate the corresponding endpoint when a UDP socket is closed. diff --git a/src/internet/model/udp-socket-impl.cc b/src/internet/model/udp-socket-impl.cc --- a/src/internet/model/udp-socket-impl.cc +++ b/src/internet/model/udp-socket-impl.cc @@ -315,6 +315,7 @@ { NS_LOG_FUNCTION_NOARGS (); m_shutdownSend = true; + DeallocateEndPoint (); return 0; }