Let's say I declare the following array:
char *arr[3];
During running the program, depending on the user's inputs, I may or may not allocate strings of memory into this array (meaning arr[i]).
Is it safe to free(arr[i]) at the end of the program without checking which of them I allocated? Or could this cause errors?
Thanks!