X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=src%2Fcommand_db.c;h=ba33e912dc9df39d8b11fe26626e949f2194354c;hb=c1a7e6cdb13cd7d883424afdf0fe08e9a10fbc28;hp=2a37b405e505326f7e6faf8293211ee44ff825d2;hpb=951248dddace9f7cadcf30700a3c3e6ad7ae2888;p=plomrogue diff --git a/src/command_db.c b/src/command_db.c index 2a37b40..ba33e91 100644 --- 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;