
18 Apr
2023
18 Apr
'23
9:44 a.m.
If I had to guess, what is happening is that the structure holder uses name without copying it under the hood, so that name is freed but some later method depends on that field being available.
you are right I just red the doc of mallocByte and it seems that under the hood it use the c malloc method. So at first I will check that the program does not segfault with a malloced array or char thanks Fred