Free handle when done so that we don't leak memory

Memory leak reported by Craig Ruff
This commit is contained in:
Love Hornquist Astrand
2011-08-31 11:46:37 -07:00
parent 8861329d81
commit d931fd0a22

View File

@@ -589,6 +589,9 @@ dns_lookup_int(const char *domain, int rr_class, int rr_type)
len = min(len, size);
r = parse_reply(reply, len);
free(reply);
resolve_free_handle(handle);
return r;
}