fix mem leak
This commit is contained in:
parent
fbc1b54c94
commit
fe784b3d51
2 changed files with 3 additions and 0 deletions
|
@ -2,6 +2,7 @@ Black List Scanning Bot Module for NeoStats Changelog.
|
|||
Fish (F) & Mark (M) & DeadNotBuried (D)
|
||||
==============================================================================
|
||||
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)
|
||||
- don't akill excluded users/hosts (D)
|
||||
- add ircbl.ahbl.org to default black lists (D)
|
||||
|
|
2
blsb.c
2
blsb.c
|
@ -220,6 +220,8 @@ static void dnsbl_callback(void *data, adns_answer *a)
|
|||
} else if (a->status != adns_s_ok) {
|
||||
nlog(LOG_WARNING, "DNS error %s", adns_strerror(a->status));
|
||||
}
|
||||
ns_free(sc->lookup);
|
||||
ns_free(sc);
|
||||
}
|
||||
|
||||
/** @brief do_lookup
|
||||
|
|
Reference in a new issue