Top "Strdup" questions

The strdup() function duplicates a string

strdup and memory leaking

Does strdup allocate another memory zone and create another pointer every time? For example: does the following code result in …

c memory-leaks strdup
Cannot free memory after using strdup

gcc 4.5.1 c89 I am trying to free some memory. However, when I check with valgrind the memory hasn't been freed. …

c free strdup
Obj-C: Memory Leak of Malloc 48 bytes in strdup frame

In my app, I have am receiving multiple memory leaks. The object is Malloc 48 bytes, and it always originates from …

objective-c memory-leaks strdup