aboutsummaryrefslogtreecommitdiff
path: root/gdb/somsolib.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1996-02-12 22:13:18 +0000
committerFred Fish <fnf@specifix.com>1996-02-12 22:13:18 +0000
commitc37c7c6ca3fa434247cdc43c212c83ad4be2741f (patch)
treeae034e40f8c6622e83ad753014bf6c36f5d8a6e4 /gdb/somsolib.c
parent1d0e0732763491c3d06cabd03cf71372111f472b (diff)
downloadfsf-binutils-gdb-c37c7c6ca3fa434247cdc43c212c83ad4be2741f.zip
fsf-binutils-gdb-c37c7c6ca3fa434247cdc43c212c83ad4be2741f.tar.gz
fsf-binutils-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/somsolib.c')
-rw-r--r--gdb/somsolib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/somsolib.c b/gdb/somsolib.c
index 2d232b3..ebec205 100644
--- a/gdb/somsolib.c
+++ b/gdb/somsolib.c
@@ -301,7 +301,7 @@ som_solib_add (arg_string, from_tty, target)
text_addr = extract_unsigned_integer (buf, 4);
- new_so = (struct so_list *) malloc (sizeof (struct so_list));
+ new_so = (struct so_list *) xmalloc (sizeof (struct so_list));
memset ((char *)new_so, 0, sizeof (struct so_list));
if (so_list_head == NULL)
{