mstdn.science is one of the many independent Mastodon servers you can use to participate in the fediverse.
http://mstdn.science is a place for scientists and science enthusiasts to discuss research and topics surrounding our work.

Server stats:

572
active users

Christos Argyropoulos MD, PhD

@barubary @Perl
Hm, I am not using these SV as strings, I am allocating a space of sufficient size to hold a C struct, and lie to perl that it has a terminal zero to avoid copying the buffer to a new area in memory and have its size extended by 1 to hold the terminal '\0'

It is easy to see that memory does not leak by creating an example in which the SV is mortalized. Code in alt text. Upon execution there is a warning about the freeing of the area allocated in C when the program terminates.