Description[DIAL] Make a copy of device id before erasing device from map.
erase() by key takes input param as a const ref. Invoking erase() by
key using data that will be destroyed during the erase() call will
result in undefined behavior.
BUG=656073
Committed: https://crrev.com/2a375e615245ec9cc6ce32f755a5a46564a250e7
Cr-Commit-Position: refs/heads/master@{#426957}
Patch Set 1 #Patch Set 2 : fmt #
Total comments: 2
Messages
Total messages: 12 (5 generated)
|