+ 1
Why is it that when i try to free my dynamic array it gives me an invalid address specified error?
I am trying to free(array) on a double* array = malloc...; , but i keep on getting this error. can anyone help/explain?
4 odpowiedzi
+ 4
Can you share your code?
Save your code in code playground and share it's link here
+ 2
Either you already freed that memory or you're trying to free and address that was not given to you by a malloc(calloc, realloc)
+ 1
It was because i wrote my realloc wrong
- 3
Kimbo Slicer
🤦🤦
At least try to read your own code carefully before asking questions.
Unbelievable!