diff options
author | Nobuyoshi Nakada <[email protected]> | 2019-06-16 23:41:06 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2019-06-16 23:51:22 +0900 |
commit | 53e9908d8afc7f03109b0aafd1698ab35f512b05 (patch) | |
tree | 453b5977d99a2218dd4fac9f662835ebab33665f /tool/pure_parser.rb | |
parent | d4929f518562b4e346af57f724232595b674f2b0 (diff) |
Fix memory leak
* string.c (str_replace_shared_without_enc): free previous buffer
before replaced.
* parse.y (gettable): make sure in advance that the `__FILE__`
object shares a fstring, to get rid of replacement with the
fstring later.
TODO: this hack may be needed in other places.
[Bug #15916]
Co-Authored-By: luke-gru (Luke Gruber) <[email protected]>
Diffstat (limited to 'tool/pure_parser.rb')
0 files changed, 0 insertions, 0 deletions