ares_library_cleanup: reset ares_realloc too

Otherwise a subsequent use of the library might use a previous
incarnation's realloc() implementation.
pull/49/head
David Drysdale 9 years ago
parent c64a374a24
commit 02b328f513
  1. 3
      ares_library_init.c

@ -152,6 +152,7 @@ void ares_library_cleanup(void)
ares_init_flags = ARES_LIB_INIT_NONE;
ares_malloc = malloc;
ares_realloc = realloc;
ares_free = free;
}
@ -164,5 +165,3 @@ int ares_library_initialized(void)
#endif
return ARES_SUCCESS;
}

Loading…
Cancel
Save