The branch, master has been updated
       via  2ccb67cae4eafa0f86d95317186719d1bfd09d57 (commit)
      from  b2a61348ddd2dbe91c6b656ef7ddd64a535e0b20 (commit)

- Log -----------------------------------------------------------------
commit 2ccb67cae4eafa0f86d95317186719d1bfd09d57
Author: Thomas Adam <[email protected]>
Commit: Thomas Adam <[email protected]>

    Plug small memory leak in run-shell
    
    Don't potentially leak the command to run were it to fail.
---
 cmd-run-shell.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/cmd-run-shell.c b/cmd-run-shell.c
index aaa310b..f805c7a 100644
--- a/cmd-run-shell.c
+++ b/cmd-run-shell.c
@@ -101,6 +101,7 @@ cmd_run_shell_exec(struct cmd *self, struct cmd_q *cmdq)
        cmdq->references++;
 
        job_run(shellcmd, cmd_run_shell_callback, cmd_run_shell_free, cdata);
+       free(shellcmd);
 
        if (cdata->bflag)
                return (CMD_RETURN_NORMAL);


-----------------------------------------------------------------------

Summary of changes:
 cmd-run-shell.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
tmux

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to