Mercurial > dnsbl
diff src/dnsbl.cpp @ 140:4028de9b46dd
cleanup smtp rate limit code
author | carl |
---|---|
date | Wed, 27 Sep 2006 08:00:13 -0700 |
parents | 003026deaed1 |
children | b82e00146672 |
line wrap: on
line diff
--- a/src/dnsbl.cpp Tue Sep 26 15:21:17 2006 -0700 +++ b/src/dnsbl.cpp Wed Sep 27 08:00:13 2006 -0700 @@ -1180,10 +1180,8 @@ // clear the recipient counts pthread_mutex_lock(&rate_mutex); for (rcpt_rates::iterator i=rcpt_counts.begin(); i!=rcpt_counts.end(); i++) { - char *x = (*i).first; - free(x); + (*i).second = 0; } - rcpt_counts.clear(); pthread_mutex_unlock(&rate_mutex); loop = 0; }