diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2023-06-28 06:46:22 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2023-06-28 06:46:22 -0700 |
commit | 60708150c2efd57f34962b336d9e63684a00aeca (patch) | |
tree | 3769b7d31ed6557e123c5551c090e2b3347653a4 /tests/012/circ.tl | |
parent | 010f5afe311b8a4f52597db2085a3aae49213c68 (diff) | |
download | txr-60708150c2efd57f34962b336d9e63684a00aeca.tar.gz txr-60708150c2efd57f34962b336d9e63684a00aeca.tar.bz2 txr-60708150c2efd57f34962b336d9e63684a00aeca.zip |
ssort: gc bug in vector case.
* gc.[ch] (gc_prot_array_alloc): Return the COBJ via
new pointer argument.
* lib.c (ssort_vec): Capture the object from gt_prot_array_alloc
into a local variable, That makes it visible to the garbage
collector, so it won't be prematurely reclaimed. Since we don't
use or return that object, we need to use gc_hint.
Diffstat (limited to 'tests/012/circ.tl')
0 files changed, 0 insertions, 0 deletions