diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2016-02-21 15:35:12 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2016-02-21 15:35:12 +0200 |
commit | a3f25ce24dcaff123fb71db89419d3ae12ddb57a (patch) | |
tree | 4c0875505707d167b3529c75ce208c3d7eab23c4 /src/json-gram.y | |
parent | 08070e48d83cd34cddb08be33cf4993fc096c9c4 (diff) | |
download | grecs-a3f25ce24dcaff123fb71db89419d3ae12ddb57a.tar.gz grecs-a3f25ce24dcaff123fb71db89419d3ae12ddb57a.tar.bz2 |
Prevent memory leaks when re-processing values of string type.
* src/grecs.hin (GRECS_CONST): New flag.
* src/tree.c (grecs_string_convert): For string types, free the
old value prior to assigning the new one, unless the GRECS_CONST
flag is set. In any case, clear the GRECS_CONST flag after
assigning new value.
Diffstat (limited to 'src/json-gram.y')
0 files changed, 0 insertions, 0 deletions