home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
At clean-up, free memory of map object definitions, too.
[plomrogue]
/
src
/
command_db.c
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;