From c37c7c6ca3fa434247cdc43c212c83ad4be2741f Mon Sep 17 00:00:00 2001 From: Fred Fish Date: Mon, 12 Feb 1996 22:13:18 +0000 Subject: * somsolib.c (som_solib_add): Use xmalloc rather than bare unchecked call to malloc. * remote-mips.c (pmon_load_fast): ditto. * remote-mm.c (mm_open): ditto. * hpread.c (hpread_lookup_type): ditto. * remote-adapt.c (adapt_open): ditto. --- gdb/hpread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/hpread.c') diff --git a/gdb/hpread.c b/gdb/hpread.c index 2463f13..c8fbec0 100644 --- a/gdb/hpread.c +++ b/gdb/hpread.c @@ -1215,7 +1215,7 @@ hpread_lookup_type (hp_type, objfile) { TYPE_VECTOR_LENGTH (objfile) = 100; TYPE_VECTOR (objfile) = (struct type **) - malloc (TYPE_VECTOR_LENGTH (objfile) * sizeof (struct type *)); + xmalloc (TYPE_VECTOR_LENGTH (objfile) * sizeof (struct type *)); } while (index >= TYPE_VECTOR_LENGTH (objfile)) TYPE_VECTOR_LENGTH (objfile) *= 2; -- cgit v1.1