some mem leaks in here as well

This commit is contained in:
Fish 2003-11-07 13:11:18 +00:00
parent 323b7264b1
commit 86128bdcb1
2 changed files with 4 additions and 0 deletions

View file

@ -7,6 +7,7 @@ Open Proxy Scanning Bot Module for NeoStats Changelog.
- Changed to use new module export API (M) - Changed to use new module export API (M)
- OPSB now doesnt save cache between restarts. (F) - OPSB now doesnt save cache between restarts. (F)
- OPSB now uses keeper to store configuration information (F) - OPSB now uses keeper to store configuration information (F)
- Some Mem Leak Cleanups (F)
* Version 1.0 * 12/12/2002 * Fish * Version 1.0 * 12/12/2002 * Fish
- Fix a coredump when not enough paramaters supplied to the set command - Fix a coredump when not enough paramaters supplied to the set command

View file

@ -110,6 +110,8 @@ int load_ports() {
nlog(LOG_DEBUG1, LOG_MOD, "Added Port %d for Protocol %s", prtlst->port, proxy_list[i].name); nlog(LOG_DEBUG1, LOG_MOD, "Added Port %d for Protocol %s", prtlst->port, proxy_list[i].name);
ok = 1; ok = 1;
} }
free(av);
free(portname);
} }
} }
return ok; return ok;
@ -235,6 +237,7 @@ void scan_end(OPM_T *scanner, OPM_REMOTE_T *remote, int notused, void *unused) {
if (scandata->u) { if (scandata->u) {
prefmsg(scandata->u->nick, s_opsb, "scan finished on %s", scandata->who); prefmsg(scandata->u->nick, s_opsb, "scan finished on %s", scandata->who);
} }
opm_remote_free(remote);
if (scandata->state != GOTOPENPROXY) scandata->state = FIN_SCAN; if (scandata->state != GOTOPENPROXY) scandata->state = FIN_SCAN;
check_scan_free(scandata); check_scan_free(scandata);
} }