Descriptionre2: Initialize sparse_to_dense_ on initial allocation under Valgrind.
This change moves logic to appease Valgrind by initializing |a| out of
the sparse_to_dense_ NULL check so that it is also run when the default
SparseArray() constructor was used, leaving sparse_to_dense_ NULL before
the first call to resize.
This was caught by Valgrind, Dr. Memory and MSan.
BUG=568373
R=thakis@chromium.org
Committed: https://crrev.com/7e7706ee201acbd7e4784fbd6f8821f6647b624c
Cr-Commit-Position: refs/heads/master@{#364292}
Patch Set 1 #
Messages
Total messages: 12 (5 generated)
|