home · contact · privacy
Added a forgotten free().
authorChristian Heller <c.heller@plomlompom.de>
Thu, 29 Aug 2013 23:59:09 +0000 (01:59 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 29 Aug 2013 23:59:09 +0000 (01:59 +0200)
src/command_db.c

index 2a37b405e505326f7e6faf8293211ee44ff825d2..ba33e912dc9df39d8b11fe26626e949f2194354c 100644 (file)
@@ -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;