`strdup()` returns a pointer to memory allocated with `malloc()`. The memory needs to be `free()`d in order to prevent a memory leak.