summary refs log tree commit diff stats
path: root/tests/stdlib
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2024-06-21 21:07:45 +0800
committerGitHub <noreply@github.com>2024-06-21 15:07:45 +0200
commit2bef08774f00692963f2a00243e4287caa7572ee (patch)
treeff5c0686c2968338858b681e88119c7ceeb21d45 /tests/stdlib
parent646bd99d461469f08e656f92ae278d6695b35778 (diff)
downloadNim-2bef08774f00692963f2a00243e4287caa7572ee.tar.gz
fixes #23742; setLen(0) no longer allocates memory for uninitialized strs/seqs for refc (#23745)
fixes #23742

Before my PR, `setLen(0)` doesn't free buffer if `s != nil`, but it
allocated unnecessary memory for `strs`. This PR rectifies this
behavior. `setLen(0)` no longer allocates memory for uninitialized
strs/seqs
Diffstat (limited to 'tests/stdlib')
0 files changed, 0 insertions, 0 deletions