I am getting this error message, but I am not sure what I am doing wrong?
Here is a edited snip-it of my code -
void WriteProgram(clientProgram *ptrToProgram, int *ptrTotalWkOuts, int *ptrNumOfEx)
{
int wkOut = 0;
clientWorkout *ptrToWorkout;
int *autoPopulate = (int *) calloc(1, sizeof(int));
clientWorkout *ptrToFirstWorkOut = (clientWorkout *)malloc(sizeof(clientWorkout));
free(ptrToFirstWorkOut);
free(autoPopulate);
ptrToFirstWorkOut = NULL;
autoPopulate = NULL;
}
When I stepped through on the debugger it did not come up, can anyone shed some light on what I am doing wrong?
Regards,
Nate