thx a lot @jangko !!!!!! > when you free the memory, Nim internal allocator might reuse it at the next > alloc call, if it thinks the previous block allocated could be reuse, hence > the garbage.
learned a lot, thank you !!! > isn't this scenario a common practice when using C language?(I really have no > idea about your C skills) yay... since i started learning C at the same time as Nim's C wrapping, I do not have enough knowledge... sorry > also I noticed that in line 67: if nread == 0: return, you don't free the > buffer, doesn't it will leak? !!! This will cause leaks, thanks !!!
