fotonauts/mongo-c-driver — comment on commit 5e4219e43162c6026279771c5ecc0f52b35c1517
File: src/net.c line 84
By octo:

`ans` is not initialized and the standard doesn't say what state it is in if *getaddrinfo(3)* fails. I'd initialize it to `NULL` before calling *getaddrinfo(3)* and check for `ans != NULL` before calling *freeaddrinfo(3)*.