It would be interesting to see the /E output after doing that?It's about a megabyte of output ... too big for my scratchpad, I think ??
If you need the CRT free(), what/where/how was the thing being freed, allocated?Good question. I put:
#ifdef malloc
printf("\nmalloc has been defined to something\n");
#endif
just prior to the malloc() call, and it confirmed that malloc had, indeed been defined to something.
Interestingly, I can
#undef malloc prior to the malloc() call, and that has no effect on any aspect of the behaviour of the script (AFAICT).
I don't think I really want to delve into those convolutions you mentioned earlier ;-)
I suspect you may have been on the right lines in your other postI've just checked that char*msg, char*arg and char*thread_arg (which is the arg that was originally malloc()'d) all point to the same location - and they do.
IIUC (not guaranteed), that means you can free the memory by calling free() on either one of the three.
Cheers,
Rob