usdf_getinfo: only free addrinfo if actually allocated

Signed-off-by: Reese Faucette <rfaucett@cisco.com>
Merge pull request #271 from rfaucett/pr/usnic_freeai

usdf_getinfo: only free addrinfo if actually allocated