diff options
author | Trond Norbye <Trond.Norbye@sun.com> | 2009-08-21 08:37:57 +0200 |
---|---|---|
committer | Dustin Sallings <dustin@spy.net> | 2009-08-22 23:38:12 -0700 |
commit | 89d5126bdb65fa9bcc945dd77fdf71261becd72e (patch) | |
tree | 4f67eb78d5e3b4da98ab2ea708746e5322d62844 /testapp.c | |
parent | b416a193b56e597bc94955cb19f562f94f31e972 (diff) | |
download | memcached-89d5126bdb65fa9bcc945dd77fdf71261becd72e.tar.gz |
Issue #77: Bug in the realloc code caused the previous allocated buffer to be reused...
Diffstat (limited to 'testapp.c')
-rw-r--r-- | testapp.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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"; |