Fix small strdup memory leak in case of need_fullpath and extraction
Merge pull request #1053 from timostrunk/small_memory_leak

Fix small strdup memory leak in case of need_fullpath and extraction