I get a segmentation error after freewith a specific pointer:
free(studentDB->name);
I can get its value without any errors or warnings:
printf("[DBG] studentDB->name: %s\n", studentDB->name);
However, as I said, the program fires when I try to free it. What are the most common reasons for a team freeleading to a segmentation error?
source
share