aboutsummaryrefslogtreecommitdiff
path: root/sim/common/dv-pal.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1998-03-22 05:06:27 +0000
committerAndrew Cagney <cagney@redhat.com>1998-03-22 05:06:27 +0000
commite5f0d498af49da4680564df06b9709423523ba6e (patch)
tree0e052b4638713a10794e9fbd11df0651dcf974c7 /sim/common/dv-pal.c
parentb1e9223cee0728b89f6b909c445a896d9fe41452 (diff)
downloadgdb-e5f0d498af49da4680564df06b9709423523ba6e.zip
gdb-e5f0d498af49da4680564df06b9709423523ba6e.tar.gz
gdb-e5f0d498af49da4680564df06b9709423523ba6e.tar.bz2
Add hw_{malloc,zalloc,free} functions to hw_device. Any memory
allocated using these functions is reclaimed when the corresponding device is deleted.
Diffstat (limited to 'sim/common/dv-pal.c')
-rw-r--r--sim/common/dv-pal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/common/dv-pal.c b/sim/common/dv-pal.c
index afef9c8..f15f5c9 100644
--- a/sim/common/dv-pal.c
+++ b/sim/common/dv-pal.c
@@ -368,7 +368,7 @@ static void
hw_pal_finish (struct hw *hw)
{
/* create the descriptor */
- hw_pal_device *hw_pal = ZALLOC (hw_pal_device);
+ hw_pal_device *hw_pal = HW_ZALLOC (hw, hw_pal_device);
hw_pal->output.status = 1;
hw_pal->output.buffer = '\0';
hw_pal->input.status = 0;