fix mem leak

This commit is contained in:
DNB 2006-01-19 04:25:37 +00:00
parent fbc1b54c94
commit fe784b3d51
2 changed files with 3 additions and 0 deletions

View file

@ -2,6 +2,7 @@ Black List Scanning Bot Module for NeoStats Changelog.
Fish (F) & Mark (M) & DeadNotBuried (D) Fish (F) & Mark (M) & DeadNotBuried (D)
============================================================================== ==============================================================================
3.0.b1-dev 3.0.b1-dev
- Fix memory leak after black list lookup (D)
- Fix the lookup crash when user had signed off and left a dangling pointer (D) - Fix the lookup crash when user had signed off and left a dangling pointer (D)
- don't akill excluded users/hosts (D) - don't akill excluded users/hosts (D)
- add ircbl.ahbl.org to default black lists (D) - add ircbl.ahbl.org to default black lists (D)

2
blsb.c
View file

@ -220,6 +220,8 @@ static void dnsbl_callback(void *data, adns_answer *a)
} else if (a->status != adns_s_ok) { } else if (a->status != adns_s_ok) {
nlog(LOG_WARNING, "DNS error %s", adns_strerror(a->status)); nlog(LOG_WARNING, "DNS error %s", adns_strerror(a->status));
} }
ns_free(sc->lookup);
ns_free(sc);
} }
/** @brief do_lookup /** @brief do_lookup