summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/websockets/websocket_throttle.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/websockets/websocket_throttle.cc b/net/websockets/websocket_throttle.cc
index fb320b6..d47d2e8 100644
--- a/net/websockets/websocket_throttle.cc
+++ b/net/websockets/websocket_throttle.cc
@@ -244,8 +244,10 @@ void WebSocketThrottle::RemoveFromQueue(SocketStream* socket,
ConnectingQueue* queue = iter->second;
DCHECK(state == queue->front());
queue->pop_front();
- if (queue->empty())
+ if (queue->empty()) {
+ delete queue;
addr_map_.erase(iter);
+ }
}
for (ConnectingQueue::iterator iter = queue_.begin();
iter != queue_.end();