Temporarily introduce a memory leak to verify curl debug memory tracking works.
authorYang Tse <yangsita@gmail.com>
Wed, 27 May 2009 19:25:51 +0000 (19:25 +0000)
committerYang Tse <yangsita@gmail.com>
Wed, 27 May 2009 19:25:51 +0000 (19:25 +0000)
ares/ares_library_init.c

index f7286ad..c6036a0 100644 (file)
@@ -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();