C – freeing structs
Simple answer : free(testPerson) is enough . Remember you can use free() only when you have allocated memory using malloc, calloc or realloc. In your case you have only malloced memory for testPerson so freeing that is sufficient. If you have used char * firstname , *last surName then in that case to store name … Read more