diff options
author | Fred Fish <fnf@specifix.com> | 1996-02-12 22:13:18 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1996-02-12 22:13:18 +0000 |
commit | c37c7c6ca3fa434247cdc43c212c83ad4be2741f (patch) | |
tree | ae034e40f8c6622e83ad753014bf6c36f5d8a6e4 /gdb/hpread.c | |
parent | 1d0e0732763491c3d06cabd03cf71372111f472b (diff) | |
download | gdb-c37c7c6ca3fa434247cdc43c212c83ad4be2741f.zip gdb-c37c7c6ca3fa434247cdc43c212c83ad4be2741f.tar.gz gdb-c37c7c6ca3fa434247cdc43c212c83ad4be2741f.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/hpread.c')
-rw-r--r-- | gdb/hpread.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |