=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-run-shell.c,v retrieving revision 1.11 retrieving revision 1.12 diff -c -r1.11 -r1.12 *** src/usr.bin/tmux/cmd-run-shell.c 2011/01/26 01:54:56 1.11 --- src/usr.bin/tmux/cmd-run-shell.c 2012/07/10 11:53:01 1.12 *************** *** 1,4 **** ! /* $OpenBSD: cmd-run-shell.c,v 1.11 2011/01/26 01:54:56 nicm Exp $ */ /* * Copyright (c) 2009 Tiago Cunha --- 1,4 ---- ! /* $OpenBSD: cmd-run-shell.c,v 1.12 2012/07/10 11:53:01 nicm Exp $ */ /* * Copyright (c) 2009 Tiago Cunha *************** *** 20,25 **** --- 20,26 ---- #include #include + #include #include #include "tmux.h" *************** *** 101,107 **** ctx->print(ctx, "%s", line); lines++; ! xfree(line); } cmd = cdata->cmd; --- 102,108 ---- ctx->print(ctx, "%s", line); lines++; ! free(line); } cmd = cdata->cmd; *************** *** 119,125 **** ctx->print(ctx, "%s", msg); else ctx->info(ctx, "%s", msg); ! xfree(msg); } } --- 120,126 ---- ctx->print(ctx, "%s", msg); else ctx->info(ctx, "%s", msg); ! free(msg); } } *************** *** 136,141 **** if (ctx->curclient != NULL) ctx->curclient->references--; ! xfree(cdata->cmd); ! xfree(cdata); } --- 137,142 ---- if (ctx->curclient != NULL) ctx->curclient->references--; ! free(cdata->cmd); ! free(cdata); }