From f5126e20f176b891c9f851a6a8eba6efca5501bb Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 16 Feb 2009 18:58:14 +0000 Subject: [PATCH] And another memory leak. --- cmd-command-prompt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd-command-prompt.c b/cmd-command-prompt.c index 6f0c8fc5..52f8db1b 100644 --- a/cmd-command-prompt.c +++ b/cmd-command-prompt.c @@ -1,4 +1,4 @@ -/* $Id: cmd-command-prompt.c,v 1.15 2009-02-16 18:57:16 nicm Exp $ */ +/* $Id: cmd-command-prompt.c,v 1.16 2009-02-16 18:58:14 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott @@ -170,6 +170,7 @@ cmd_command_prompt_callback(void *data, const char *s) ctx.cmdclient = NULL; cmd_list_exec(cmdlist, &ctx); + cmd_list_free(cmdlist); if (c->prompt_callback != (void *) &cmd_command_prompt_callback) return (1);