projects
/
YACASL2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
malloc周辺を中心としたリファクタリング
[YACASL2.git]
/
src
/
struct.c
diff --git
a/src/struct.c
b/src/struct.c
index
1f62a13
..
1fb4326
100644
(file)
--- a/
src/struct.c
+++ b/
src/struct.c
@@
-19,6
+19,7
@@
PROGPROP *progprop;
void reset()
{
int i;
+
/* メモリの初期化 */
memory = malloc_chk(memsize * sizeof(WORD), "memory");
for(i = 0; i < memsize; i++) {
@@
-37,6
+38,7
@@
void reset()
/* COMET II仮想マシンのシャットダウン */
void shutdown()
{
+ free(progprop);
free(cpu);
free(memory);
}