Found and fixed a memory leak in the rope strings

Also fixed a bit manipulation error in the GC.
This commit is contained in:
2026-05-10 15:39:04 +10:00
parent 3b813da1cf
commit 83fb5222a2
9 changed files with 124 additions and 6 deletions
+2 -2
View File
@@ -192,8 +192,8 @@ int test_string_concatenation(void) {
free(buffer);
Toy_freeString(result);
Toy_freeString(first);
Toy_freeString(second);
// Toy_freeString(first); //these do NOT need to be freed manually
// Toy_freeString(second);
Toy_freeBucket(&bucket);
}