diff options
author | Yang Tse <yangsita@gmail.com> | 2009-05-27 19:25:51 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2009-05-27 19:25:51 +0000 |
commit | ce1a97d6c80a9eb9eb146e0d4f5a37deb3e5d9d0 (patch) | |
tree | bea6613e795c2ef90873bc132ed04b9921fe2dc1 /ares | |
parent | 34c9ec4e1a05576de49dbb25153551ead7b07d13 (diff) |
Temporarily introduce a memory leak to verify curl debug memory tracking works.
Diffstat (limited to 'ares')
-rw-r--r-- | ares/ares_library_init.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ares/ares_library_init.c b/ares/ares_library_init.c index f7286ad17..c6036a0b2 100644 --- a/ares/ares_library_init.c +++ b/ares/ares_library_init.c @@ -90,11 +90,14 @@ static void ares_win32_cleanup(void) int ares_library_init(int flags) { int res; + char *leekme; if (ares_initialized) return ARES_SUCCESS; ares_initialized++; + leekme = malloc(32); + if (flags & ARES_LIB_INIT_WIN32) { res = ares_win32_init(); |