projects
/
sx
/
simavr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
regExp
home
|
summary
|
tags
|
heads
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
raw
|
patch
| inline |
side by side
(parent:
f7baf8c
)
Commit
c8c74557657e0b89904538344f2127128c95d62a
author
Michel Pollet
<buserror@gmail.com>
Thu, 2 Sep 2010 11:56:29 +0000
(12:56 +0100)
committer
Michel Pollet
<buserror@gmail.com>
Thu, 2 Sep 2010 11:56:29 +0000
(12:56 +0100)
Deallocate memory and IO modules at teardown
Signed-off-by: Michel Pollet <buserror@gmail.com>
simavr/sim/sim_avr.c
patch
|
blob
|
history
|
download
diff --git
a/simavr/sim/sim_avr.c
b/simavr/sim/sim_avr.c
index d15f7f2eddc4cdd1e07e7f37a94946fef064699f..73883d4b3304c10027760abb1af7e09e468f58c5 100644
(file)
--- a/
simavr/sim/sim_avr.c
+++ b/
simavr/sim/sim_avr.c
@@
-53,6
+53,11
@@
void avr_terminate(avr_t * avr)
if (avr->vcd)
avr_vcd_close(avr->vcd);
avr->vcd = NULL;
+ avr_deallocate_ios(avr);
+
+ free(avr->flash);
+ free(avr->data);
+ avr->flash = avr->data = NULL;
}
void avr_reset(avr_t * avr)