Getting an error indicating free() trying free what was not allocated:
malloc: *** error for object 0x16b03e550: pointer being freed was not allocated
Solution: ensure anchoring setup doesn't erroneously point to non-allocated data
In the original code, data_copy was getting a new pointer allocation, and that was making the code below assume text is malloc'd, which is not necessarily true.
Getting an error indicating free() trying free what was not allocated:
Solution: ensure anchoring setup doesn't erroneously point to non-allocated data
In the original code, data_copy was getting a new pointer allocation, and that was making the code below assume
text
is malloc'd, which is not necessarily true.