diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-09-30 20:19:44 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-09-30 20:19:44 -0700 |
commit | edca92c10572b6bb7dd60db156f545d98373f803 (patch) | |
tree | 0f22fb5c4203c48c2a8d7f6a71692f9b689d791d /decode11.c | |
parent | 93812aa7950342c809a9dcbd9d50379c050b51ac (diff) | |
download | xscope-edca92c10572b6bb7dd60db156f545d98373f803.tar.gz |
Stop wrapping malloc & free
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'decode11.c')
-rw-r--r-- | decode11.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -107,7 +107,9 @@ NewQEntry ( if (FreeQEntries == NULL) { /* create new queue entry */ - p = (struct QueueEntry *) Malloc ((long)(sizeof (*p))); + p = malloc (sizeof (*p)); + if (p == NULL) + panic("unable to allocate new QueueEntry"); } else { |