Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo
You are correct, but that's totally irrelevant. You are failing basic C badly. Please...
Look at that condition, it's an "or" operator not "and".
It is safe to free a NULL pointer. See manpage.