From 89d5126bdb65fa9bcc945dd77fdf71261becd72e Mon Sep 17 00:00:00 2001 From: Trond Norbye Date: Fri, 21 Aug 2009 08:37:57 +0200 Subject: Issue #77: Bug in the realloc code caused the previous allocated buffer to be reused... --- testapp.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'testapp.c') diff --git a/testapp.c b/testapp.c index d93f1e2..388a454 100644 --- a/testapp.c +++ b/testapp.c @@ -268,6 +268,11 @@ static pid_t start_server(in_port_t *port_out, bool daemon) { char *argv[20]; int arg = 0; putenv(environment); +#ifdef __sun + putenv("LD_PRELOAD=watchmalloc.so.1"); + putenv("MALLOC_DEBUG=WATCH"); +#endif + if (!daemon) { argv[arg++] = "./timedrun"; argv[arg++] = "15"; -- cgit v1.2.1