Skip to main content
Share Your Experience: Take the 2024 Developer Survey

New answers tagged

3 votes
Accepted

Problem with char* variable malloc/free. Empty contents on recipient variable after using free

What you have is called a "Dangling Pointer". You are trying to use a pointer that is pointing to memory that has been freed and doesn't contain what you think it does anymore. This line of ...
Delta_G's user avatar
  • 3,324

Top 50 recent answers are included