I am looking for a way to free the memory of the allocated c struct in Go. I tried to free the memory using C.free but it threw a malloc: *** error for object 0xc00024dfb0
malloc: *** error for object 0xc00024dfb0