OSDN Git Service
(root)
/
hengband
/
hengband.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb6e3e1
)
autopick_free_entryで開放した領域へのポインタをNULLにするように修正。(領域の二重開放防止)
author
habu
<habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 8 Feb 2010 14:33:35 +0000
(14:33 +0000)
committer
habu
<habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 8 Feb 2010 14:33:35 +0000
(14:33 +0000)
src/autopick.c
patch
|
blob
|
history
diff --git
a/src/autopick.c
b/src/autopick.c
index
cd77a19
..
eacdc8e
100644
(file)
--- a/
src/autopick.c
+++ b/
src/autopick.c
@@
-688,6
+688,8
@@
static void autopick_free_entry(autopick_type *entry)
{
string_free(entry->name);
string_free(entry->insc);
+ entry->name = NULL;
+ entry->insc = NULL;
}