I'm having a little issue. I have an object that I'm freeing with delete, and it has a char* that's being freed with free in its destructor. The reason I'm using free is because I used strdup and malloc in creating the char pointers. The reason I'm using malloc is because I used strdup to begin with in most code paths. Would this scenario cause memory corruption?
Edit: I figured out what was wrong. I was passing my object as a copy through a method, and it kept the char* across; when the function exited, that temporary object got deleted, freeing the char*. Now I need the char* after the method exited, but that's gone now. Two *'s and minus one fixed it.