DescriptionFix memory leak. Make "V8 Linux - memcheck" build bot happy.
Flags::SetFlagsFromCommandLine allocates memory to hold copies of string
arguments when calling Flag::set_string_value(..., true) and presently
noone deallocates this. Resetting the flags will clear this memory.
Since Flags can be used throughout the entire V8 lifetime,
Dispose/Teardown seems like the right location to free this
memory.
This is rarely a problem in practice, but the memcheck buildbot (rightly)
complains.
BUG=
R=machenbach@chromium.org
Committed: https://code.google.com/p/v8/source/detail?r=23395
Patch Set 1 #Messages
Total messages: 4 (0 generated)
|