Make the debug build get the debug dump file path from the environment

variable to allow the test suite to better control where it ends up.
This commit is contained in:
Daniel Stenberg 2005-01-27 15:51:03 +00:00
parent ade1e79b37
commit 289a42f050
2 changed files with 4 additions and 3 deletions

View file

@ -2933,8 +2933,9 @@ operate(struct Configurable *config, int argc, char *argv[])
/* this sends all memory debug messages to a logfile named memdump */
env = curlx_getenv("CURL_MEMDEBUG");
if(env) {
/* use the value as file name */
curl_memdebug(env);
curl_free(env);
curl_memdebug("memdump");
}
env = curlx_getenv("CURL_MEMLIMIT");
if(env) {