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
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -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 */
  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;