projects
/
YACASL2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Valgrindで見つかったメモリー周辺の問題点を修正
[YACASL2.git]
/
src
/
struct.c
diff --git
a/src/struct.c
b/src/struct.c
index
0662eff
..
ef9a844
100644
(file)
--- a/
src/struct.c
+++ b/
src/struct.c
@@
-40,8
+40,8
@@
void reset(int memsize, int clocks)
*/
void shutdown()
{
-
free_chk(execptr, "execptr"
);
-
free_chk(sys->memory, "sys.memory"
);
-
free_chk(sys->cpu, "sys.cpu"
);
-
free_chk(sys, "sys"
);
+
FREE(execptr
);
+
FREE(sys->memory
);
+
FREE(sys->cpu
);
+
FREE(sys
);
}