prevent leak of strdup'd addr on error
Merge pull request #2 from dgryski/addr-strdup-leak

prevent leak of strdup'd addr on error