Fix memory leak caused by incorrect usage of map
This CL is fixing an memory leak detected by memlog. The bug got introduced here: https://chromium-review.googlesource.com/c/chromium/src/+/1526067 The loopup in the map is using the [] operator which is creating a default entry when the key is not present. Over the time, that map came really big and consumes too much memory. The fix is to not use the [] operator, but to validate the presence of the key. R=rockot@chromium.org,siggi@chromium.org CC=yuzus@chromium.org Bug: 973200 Change-Id: I701e682deddace850d094c68d75adea1cec391cc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1669101Reviewed-by:Ken Rockot <rockot@google.com> Reviewed-by:
Sigurður Ásgeirsson <siggi@chromium.org> Commit-Queue: Etienne Bergeron <etienneb@chromium.org> Cr-Commit-Position: refs/heads/master@{#671407}
Showing
Please register or sign in to comment