C
c.arnet
Hi there,
I'm checking out the Valgrind debugging tool. It reports an 'invalid
free' error on a code chunk like this:
int main(int argc, char *argv[])
{
char *cpStr;
cpStr = "";
free(cpStr);
}
What's exactly going on in main memory here?
Thanks,
Cornel
I'm checking out the Valgrind debugging tool. It reports an 'invalid
free' error on a code chunk like this:
int main(int argc, char *argv[])
{
char *cpStr;
cpStr = "";
free(cpStr);
}
What's exactly going on in main memory here?
Thanks,
Cornel