Chromium Code Reviews
DescriptionFix dangling pointer
The resolved executable path is returned to the static in Platform as
a scope allocated string. This change strdups it when it is cached in
a static for return on subsequent calls. Previously, the memory would
be deallocated on exit from the scope.
fixes #26031
R=asiva@google.com
Committed: https://github.com/dart-lang/sdk/commit/078d89ef5c2fc431cd8b5926d61783f109391cf9
Patch Set 1 #Patch Set 2 : Add test #
Messages
Total messages: 6 (3 generated)
|
|||||||||||||||||||||||||||||||||||||