home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0a7851
)
Added a forgotten free().
author
Christian Heller
<c.heller@plomlompom.de>
Thu, 29 Aug 2013 23:59:09 +0000
(
01:59
+0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Thu, 29 Aug 2013 23:59:09 +0000
(
01:59
+0200)
src/command_db.c
patch
|
blob
|
history
diff --git
a/src/command_db.c
b/src/command_db.c
index 2a37b405e505326f7e6faf8293211ee44ff825d2..ba33e912dc9df39d8b11fe26626e949f2194354c 100644
(file)
--- a/
src/command_db.c
+++ b/
src/command_db.c
@@
-95,6
+95,7
@@
extern void init_command_db(struct World * world)
copy_tokenized_string(world, &cmds[i].dsc_long, "\n", err);
i++;
}
+ free(line);
world->cmd_db = malloc(sizeof(struct CommandDB));
world->cmd_db->cmds = cmds;
world->cmd_db->n = lines;