now really: fix some memory leak
This commit is contained in:
parent
e02ae5d350
commit
062d116f33
@ -34,6 +34,7 @@
|
|||||||
|
|
||||||
#if HAVE_LIBDJBDNS
|
#if HAVE_LIBDJBDNS
|
||||||
#include <dns.h>
|
#include <dns.h>
|
||||||
|
#include <djbdns/alloc.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#else
|
#else
|
||||||
#include <resolv.h>
|
#include <resolv.h>
|
||||||
@ -351,7 +352,7 @@ static void** get_rrs(char *domain, int qtype) {
|
|||||||
pthread_mutex_unlock(&dns_transmit_mutex);
|
pthread_mutex_unlock(&dns_transmit_mutex);
|
||||||
|
|
||||||
syslog(LOG_DEBUG, "get_rrs: (4) q = %p", q);
|
syslog(LOG_DEBUG, "get_rrs: (4) q = %p", q);
|
||||||
free(q);
|
alloc_free(q);
|
||||||
q = NULL;
|
q = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -403,7 +403,7 @@ int server() {
|
|||||||
}
|
}
|
||||||
#endif /* ENABLE_NETSNMP */
|
#endif /* ENABLE_NETSNMP */
|
||||||
|
|
||||||
// while (getStatCounter(globalStatCounter, STAT_CNT_ACCEPTED) < 1000) {
|
// while (getStatCounter(globalStatCounter, STAT_CNT_ACCEPTED) < 100) {
|
||||||
while (1) {
|
while (1) {
|
||||||
syslog(LOG_DEBUG, "server: Waiting for connection");
|
syslog(LOG_DEBUG, "server: Waiting for connection");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user