fixed a few mem leaks in dns.c

This commit is contained in:
fishwaldo 2002-09-06 04:34:11 +00:00
parent 49ecb00689
commit a8fd29944a
2 changed files with 3 additions and 3 deletions

View file

@ -12,6 +12,7 @@ NeoStats ChangeLog - Anything we add/remove/fix/change is in here (even our rant
- fixed up the backtrace function (F)
- Fixed up the timer.c segv in module code (F)
- Fixed up segv locatation code in dns.c (F)
- Fixed up a few mem leaks in dns.c
* NeoStats * Fish * Version 2.5.0-Beta5
- Fixed a problem with prefmsg in Unreal only.

5
dns.c
View file

@ -20,7 +20,7 @@
** USA
**
** NeoStats CVS Identification
** $Id: dns.c,v 1.6 2002/09/04 08:42:06 fishwaldo Exp $
** $Id: dns.c,v 1.7 2002/09/06 04:34:11 fishwaldo Exp $
*/
@ -86,9 +86,8 @@ int dns_lookup(char *str, adns_rrtype type, void (*callback)(char *data, adns_a
status = adns_submit(ads, str, type, adns_qf_owner|adns_qf_cname_loose, NULL, &dnsdata->q);
}
if (status) {
#ifdef DEBUG
log("DNS: adns_submit error: %s", strerror(status));
#endif
free(dnsdata);
return 0;
}