X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;ds=sidebyside;f=src%2Fcommand_db.c;fp=src%2Fcommand_db.c;h=ba33e912dc9df39d8b11fe26626e949f2194354c;hb=c8ff28bbc9394d2788bc9d106f1375c6c7836f34;hp=2a37b405e505326f7e6faf8293211ee44ff825d2;hpb=c0a785104a8081e7911647345285da9e9ed22907;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;