OSDN Git Service
(root)
/
hengbandforosx
/
hengbandosx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e60bfb
)
[Fix] #39815 backwardsEric氏による、autopick_autoregister()のメモリリーク問題の修正 / Fixed memory...
author
Hourier
<hourier@users.sourceforge.jp>
Mon, 20 Jan 2020 13:34:55 +0000
(22:34 +0900)
committer
Hourier
<hourier@users.sourceforge.jp>
Mon, 20 Jan 2020 13:35:00 +0000
(22:35 +0900)
src/autopick.c
patch
|
blob
|
history
diff --git
a/src/autopick.c
b/src/autopick.c
index
381d974
..
a001d62
100644
(file)
--- a/
src/autopick.c
+++ b/
src/autopick.c
@@
-2408,7
+2408,9
@@
bool autopick_autoregister(player_type *player_ptr, object_type *o_ptr)
/* Add a line to the file */
/* Don't kill "entry" */
- fprintf(pref_fff, "%s\n", autopick_line_from_entry(entry));
+ concptr tmp = autopick_line_from_entry(entry);
+ fprintf(pref_fff, "%s\n", tmp);
+ string_free(tmp);
fclose(pref_fff);
return TRUE;