PR/48718: Juergen Hannken-Illjes: Heimdal leaks file descriptors
Add missing call to free the resolve handle on success. XXX: pullup 6
This commit is contained in:
parent
6bba4a39e0
commit
e2877366be
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: resolve.c,v 1.1.1.1 2011/04/13 18:15:42 elric Exp $ */
|
||||
/* $NetBSD: resolve.c,v 1.2 2014/04/06 14:36:35 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 - 2006 Kungliga Tekniska Högskolan
|
||||
|
@ -590,6 +590,7 @@ dns_lookup_int(const char *domain, int rr_class, int rr_type)
|
|||
|
||||
len = min(len, size);
|
||||
r = parse_reply(reply, len);
|
||||
resolve_free_handle(handle);
|
||||
free(reply);
|
||||
return r;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue