Only call freeaddrinfo if job->info is not NULL

If it is NULL and freeaddrinfo is called, libc segmentation faults
Merge pull request #69 from hannesm/fix-getaddrinfo

Fix getaddrinfo