From c8ff28bbc9394d2788bc9d106f1375c6c7836f34 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Fri, 30 Aug 2013 01:59:09 +0200 Subject: [PATCH] Added a forgotten free(). --- src/command_db.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.30.2