Skip to content
Permalink
Browse files

cleanup: s/curl_debug/curl_dbg_debug in comments and docs

Leftovers from the function rename back in 76b6348

Reported-by: Gisle Vanem
Bug: f3e0f07#com
mitcomment-34601751

Closes #4203
  • Loading branch information...
bagder committed Aug 8, 2019
1 parent c5ee65f commit 6ee9e4bd47a919bd8567958bfcca183569747a96
Showing with 7 additions and 7 deletions.
  1. +1 −1 docs/INTERNALS.md
  2. +3 −3 src/tool_main.c
  3. +3 −3 tests/libtest/first.c
@@ -773,7 +773,7 @@ Track Down Memory Leaks

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
using functions to the given file name. Make sure you rebuild your program
@@ -113,9 +113,9 @@ static void memory_tracking_init(void)
strcpy(fname, env);
curl_free(env);
curl_dbg_memdebug(fname);
/* this weird stuff here is to make curl_free() get called
before curl_memdebug() as otherwise memory tracking will
log a free() without an alloc! */
/* this weird stuff here is to make curl_free() get called before
curl_gdb_memdebug() as otherwise memory tracking will log a free()
without an alloc! */
}
/* if CURL_MEMLIMIT is set, this enables fail-on-alloc-number-N feature */
env = curlx_getenv("CURL_MEMLIMIT");
@@ -97,9 +97,9 @@ static void memory_tracking_init(void)
strcpy(fname, env);
curl_free(env);
curl_dbg_memdebug(fname);
/* this weird stuff here is to make curl_free() get called
before curl_memdebug() as otherwise memory tracking will
log a free() without an alloc! */
/* this weird stuff here is to make curl_free() get called before
curl_dbg_memdebug() as otherwise memory tracking will log a free()
without an alloc! */
}
/* if CURL_MEMLIMIT is set, this enables fail-on-alloc-number-N feature */
env = curl_getenv("CURL_MEMLIMIT");

0 comments on commit 6ee9e4b

Please sign in to comment.
You can’t perform that action at this time.