diff options
author | Andrew Cagney <cagney@redhat.com> | 1998-03-22 05:06:27 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1998-03-22 05:06:27 +0000 |
commit | e5f0d498af49da4680564df06b9709423523ba6e (patch) | |
tree | 0e052b4638713a10794e9fbd11df0651dcf974c7 /sim/common/dv-pal.c | |
parent | b1e9223cee0728b89f6b909c445a896d9fe41452 (diff) | |
download | gdb-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.c | 2 |
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; |