now really: fix some memory leak

This commit is contained in:
whottgen 2006-09-28 15:27:27 +00:00
parent e02ae5d350
commit 062d116f33
2 changed files with 3 additions and 2 deletions

View File

@ -34,6 +34,7 @@
#if HAVE_LIBDJBDNS
#include <dns.h>
#include <djbdns/alloc.h>
#include <pthread.h>
#else
#include <resolv.h>
@ -351,7 +352,7 @@ static void** get_rrs(char *domain, int qtype) {
pthread_mutex_unlock(&dns_transmit_mutex);
syslog(LOG_DEBUG, "get_rrs: (4) q = %p", q);
free(q);
alloc_free(q);
q = NULL;
#endif

View File

@ -403,7 +403,7 @@ int server() {
}
#endif /* ENABLE_NETSNMP */
// while (getStatCounter(globalStatCounter, STAT_CNT_ACCEPTED) < 1000) {
// while (getStatCounter(globalStatCounter, STAT_CNT_ACCEPTED) < 100) {
while (1) {
syslog(LOG_DEBUG, "server: Waiting for connection");