Skip to content
Snippets Groups Projects
Commit 907dabed authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

memory debugging is now only enabled if the CURL_MEMDEBUG environment

variable is set when curl is invoked
parent 0cacbc89
No related branches found
No related tags found
No related merge requests found
......@@ -1890,13 +1890,18 @@ operate(struct Configurable *config, int argc, char *argv[])
int res = 0;
int i;
errorbuffer[0]=0; /* prevent junk from being output */
#ifdef MALLOCDEBUG
/* this sends all memory debug messages to a logfile named memdump */
curl_memdebug("memdump");
char *env;
env = curl_getenv("CURL_MEMDEBUG");
if(env) {
free(env);
curl_memdebug("memdump");
}
#endif
errorbuffer[0]=0; /* prevent junk from being output */
main_init(); /* inits */
config->showerror=TRUE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment