mirror of git://sourceware.org/git/glibc.git
Update.
2000-03-27 Ulrich Drepper <drepper@redhat.com> * locale/programs/localedef.c: Use __malloc_initialize_hook to install mcheck handler. * libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory handling problem.
This commit is contained in:
parent
a211d17424
commit
670066c3bd
|
|
@ -1,3 +1,10 @@
|
||||||
|
2000-03-27 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* locale/programs/localedef.c: Use __malloc_initialize_hook to
|
||||||
|
install mcheck handler.
|
||||||
|
|
||||||
|
* libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory
|
||||||
|
handling problem.
|
||||||
2000-03-27 Roland McGrath <roland@baalperazim.frob.com>
|
2000-03-27 Roland McGrath <roland@baalperazim.frob.com>
|
||||||
|
|
||||||
* stdio-common/tmpfile.c: Use <shlib-compat.h> macros.
|
* stdio-common/tmpfile.c: Use <shlib-compat.h> macros.
|
||||||
|
|
|
||||||
|
|
@ -135,9 +135,6 @@ main (int argc, char *argv[])
|
||||||
struct localedef_t global;
|
struct localedef_t global;
|
||||||
int remaining;
|
int remaining;
|
||||||
|
|
||||||
/* Enable `malloc' debugging. */
|
|
||||||
mcheck_pedantic (NULL);
|
|
||||||
|
|
||||||
/* Set initial values for global variables. */
|
/* Set initial values for global variables. */
|
||||||
copy_list = NULL;
|
copy_list = NULL;
|
||||||
posix_conformance = getenv ("POSIXLY_CORRECT") != NULL;
|
posix_conformance = getenv ("POSIXLY_CORRECT") != NULL;
|
||||||
|
|
@ -510,3 +507,14 @@ load_locale (int locale, const char *name, const char *repertoire_name,
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
turn_on_mcheck (void)
|
||||||
|
{
|
||||||
|
/* Enable `malloc' debugging. */
|
||||||
|
mcheck (NULL);
|
||||||
|
/* Use the following line for a more thorough but much slower testing. */
|
||||||
|
/* mcheck_pedantic (NULL); */
|
||||||
|
}
|
||||||
|
|
||||||
|
void (*__malloc_initialize_hook) (void) = turn_on_mcheck;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue