Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(853)

Unified Diff: remoting/host/win/wts_terminal_monitor.cc

Issue 14205019: Do not access memory freed by WTSFreeMemory(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/win/wts_terminal_monitor.cc
diff --git a/remoting/host/win/wts_terminal_monitor.cc b/remoting/host/win/wts_terminal_monitor.cc
index 03956517b9cf7d437c9222df926f76746d562230..414a86b461c3cc54d1ac133d156807ca53a24d0d 100644
--- a/remoting/host/win/wts_terminal_monitor.cc
+++ b/remoting/host/win/wts_terminal_monitor.cc
@@ -160,8 +160,9 @@ uint32 WtsTerminalMonitor::GetSessionIdForEndpoint(
net::IPEndPoint endpoint;
if (GetEndpointForSessionId(session_info[i].SessionId, &endpoint) &&
endpoint == client_endpoint) {
+ uint32 session_id = session_info[i].SessionId;
WTSFreeMemory(session_info);
- return session_info[i].SessionId;
+ return session_id;
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698