diff options
author | Daniel Stenberg <daniel@haxx.se> | 2013-05-12 15:10:01 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2013-05-12 15:10:01 +0200 |
commit | 7ed25ccf0d1e5b8c7fd3bd90f0375a06011cd394 (patch) | |
tree | 208229312256c01fc43232404948ae4875cf0d0f /lib/memdebug.c | |
parent | 01eede2662f8f4552324b828d8dd6335ee4e2d44 (diff) | |
download | curl-7ed25ccf0d1e5b8c7fd3bd90f0375a06011cd394.tar.gz |
Revert "WIN32 MemoryTracking: track wcsdup() _wcsdup() and _tcsdup() usage"
This reverts commit 8ec2cb5544b86306b702484ea785b6b9596562ab.
We don't have any code anywhere in libcurl (or the curl tool) that use
wcsdup so there's no such memory use to track. It seems to cause mild
problems with the Borland compiler though that we may avoid by reverting
this change again.
Bug: http://curl.haxx.se/mail/lib-2013-05/0070.html
Diffstat (limited to 'lib/memdebug.c')
-rw-r--r-- | lib/memdebug.c | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/lib/memdebug.c b/lib/memdebug.c index b3ddfb430..4d5f44d2f 100644 --- a/lib/memdebug.c +++ b/lib/memdebug.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -239,32 +239,6 @@ char *curl_dostrdup(const char *str, int line, const char *source) return mem; } -#ifdef WIN32 -wchar_t *curl_dowcsdup(const wchar_t *str, int line, const char *source) -{ - wchar_t *mem; - size_t wsiz, bsiz; - - assert(str != NULL); - - if(countcheck("wcsdup", line, source)) - return NULL; - - wsiz = wcslen(str) + 1; - bsiz = wsiz * sizeof(wchar_t); - - mem = curl_domalloc(bsiz, 0, NULL); /* NULL prevents logging */ - if(mem) - memcpy(mem, str, bsiz); - - if(source) - curl_memlog("MEM %s:%d wcsdup(%p) (%zu) = %p\n", - source, line, str, bsiz, mem); - - return mem; -} -#endif - /* We provide a realloc() that accepts a NULL as pointer, which then performs a malloc(). In order to work with ares. */ void *curl_dorealloc(void *ptr, size_t wantedsize, |