aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 14f34fac1..12ff3db91 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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) {