Fix unbound-host compile with --enable-alloc-checks.

git-svn-id: file:///svn/unbound/trunk@1836 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2009-09-17 10:50:44 +00:00
parent aae91da6d2
commit 75fbd42ca3
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,6 @@
17 September 2009: Wouter
- fix compile of unbound-host when --enable-alloc-checks.
16 September 2009: Wouter
- Fix memory leak reported by Tao Ma.
- Fix memstats test tool for log-time-ascii log format.

View File

@ -41,6 +41,13 @@
*/
#include "config.h"
/* remove alloc checks, not in this part of the code */
#ifdef UNBOUND_ALLOC_STATS
#undef malloc
#undef calloc
#undef free
#undef realloc
#endif
#include "libunbound/unbound.h"
#include <ldns/ldns.h>