I have a pointer to a char in a structure that I use to make a linked list. However, the program crashes when attempting to delete the allocated memory for *char member of the structure. Any ideas?
Here is an example:
struct record
{
char *buffer;
rec *next;
};
typedef record *rec;
...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.