summaryrefslogtreecommitdiffstats
path: root/HACKING-toc.txr
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-06-24 20:28:37 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-06-24 20:28:37 -0700
commita7ffb3583b2f805521372e511bafdce65318903c (patch)
tree4a118c3f15a09eafcffb4a02f2c225eab7a25be6 /HACKING-toc.txr
parent4bc6717ece7f685b8d5da4cf3ace86f45d7c68be (diff)
downloadtxr-a7ffb3583b2f805521372e511bafdce65318903c.tar.gz
txr-a7ffb3583b2f805521372e511bafdce65318903c.tar.bz2
txr-a7ffb3583b2f805521372e511bafdce65318903c.zip
ffi: fix memory leak regression.
The recent commit "ffi: elide useless by-value in calls." neglects to mark a few types with the by_value_in flag. The string types need it because their in action performs memory freeing, which must be done regardless of the by-value or by-pointer semantics. * ffi.c (ffi_init_types): set by_value_in to 1 for str, bstr and wstr. In general, if the type needs a release function, it needs by_value_in to be set.
Diffstat (limited to 'HACKING-toc.txr')
0 files changed, 0 insertions, 0 deletions