cleanup: s/curl_debug/curl_dbg_debug in comments and docs

Leftovers from the function rename back in 76b6348949

Reported-by: Gisle Vanem
Bug: f3e0f071b1 (com)
mitcomment-34601751

Closes #4203
This commit is contained in:
Daniel Stenberg 2019-08-08 14:51:01 +02:00
parent c5ee65ffab
commit 6ee9e4bd47
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
3 changed files with 7 additions and 7 deletions

View File

@ -773,7 +773,7 @@ Track Down Memory Leaks
Add a line in your application code: Add a line in your application code:
`curl_memdebug("dump");` `curl_dbg_memdebug("dump");`
This will make the malloc debug system output a full trace of all resource This will make the malloc debug system output a full trace of all resource
using functions to the given file name. Make sure you rebuild your program using functions to the given file name. Make sure you rebuild your program

View File

@ -113,9 +113,9 @@ static void memory_tracking_init(void)
strcpy(fname, env); strcpy(fname, env);
curl_free(env); curl_free(env);
curl_dbg_memdebug(fname); curl_dbg_memdebug(fname);
/* this weird stuff here is to make curl_free() get called /* this weird stuff here is to make curl_free() get called before
before curl_memdebug() as otherwise memory tracking will curl_gdb_memdebug() as otherwise memory tracking will log a free()
log a free() without an alloc! */ without an alloc! */
} }
/* if CURL_MEMLIMIT is set, this enables fail-on-alloc-number-N feature */ /* if CURL_MEMLIMIT is set, this enables fail-on-alloc-number-N feature */
env = curlx_getenv("CURL_MEMLIMIT"); env = curlx_getenv("CURL_MEMLIMIT");

View File

@ -97,9 +97,9 @@ static void memory_tracking_init(void)
strcpy(fname, env); strcpy(fname, env);
curl_free(env); curl_free(env);
curl_dbg_memdebug(fname); curl_dbg_memdebug(fname);
/* this weird stuff here is to make curl_free() get called /* this weird stuff here is to make curl_free() get called before
before curl_memdebug() as otherwise memory tracking will curl_dbg_memdebug() as otherwise memory tracking will log a free()
log a free() without an alloc! */ without an alloc! */
} }
/* if CURL_MEMLIMIT is set, this enables fail-on-alloc-number-N feature */ /* if CURL_MEMLIMIT is set, this enables fail-on-alloc-number-N feature */
env = curl_getenv("CURL_MEMLIMIT"); env = curl_getenv("CURL_MEMLIMIT");