mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-27 02:23:15 +01:00
And another memory leak.
This commit is contained in:
parent
4573ef1869
commit
f5126e20f1
@ -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 <nicm@users.sourceforge.net>
|
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -170,6 +170,7 @@ cmd_command_prompt_callback(void *data, const char *s)
|
|||||||
ctx.cmdclient = NULL;
|
ctx.cmdclient = NULL;
|
||||||
|
|
||||||
cmd_list_exec(cmdlist, &ctx);
|
cmd_list_exec(cmdlist, &ctx);
|
||||||
|
cmd_list_free(cmdlist);
|
||||||
|
|
||||||
if (c->prompt_callback != (void *) &cmd_command_prompt_callback)
|
if (c->prompt_callback != (void *) &cmd_command_prompt_callback)
|
||||||
return (1);
|
return (1);
|
||||||
|
Loading…
Reference in New Issue
Block a user