From: Christian Heller Date: Thu, 29 Aug 2013 23:59:09 +0000 (+0200) Subject: Added a forgotten free(). X-Git-Tag: tce~998 X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7Byoutube_prefix%7D%7D%7B%7Bvideo_id%7D%7D?a=commitdiff_plain;h=c8ff28bbc9394d2788bc9d106f1375c6c7836f34;p=plomrogue Added a forgotten free(). --- 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;