flow.c (create_edge_list): Use xmalloc, not malloc.

Tue Aug 17 17:39:43 EDT 1999  Andrew MacLeod  <amacleod@cygnus.com>

	* flow.c (create_edge_list): Use xmalloc, not malloc.

From-SVN: r28736
This commit is contained in:
Andrew MacLeod 1999-08-17 21:44:26 +00:00 committed by Andrew Macleod
parent c78896f083
commit 57ad447995
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
Tue Aug 17 17:39:43 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
* flow.c (create_edge_list): Use xmalloc, not malloc.
Tue Aug 17 01:40:54 1999 Loren Rittle <ljrittle@acm.org>
* fixinc/inclhack.def (no_double_slash): Do not trash single-line

View File

@ -5283,10 +5283,10 @@ create_edge_list ()
for (e = ENTRY_BLOCK_PTR->succ; e; e = e->succ_next)
num_edges++;
elist = malloc (sizeof (struct edge_list));
elist = xmalloc (sizeof (struct edge_list));
elist->num_blocks = block_count;
elist->num_edges = num_edges;
elist->index_to_edge = malloc (sizeof (edge) * num_edges);
elist->index_to_edge = xmalloc (sizeof (edge) * num_edges);
num_edges = 0;