=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-if-shell.c,v retrieving revision 1.14 retrieving revision 1.15 diff -c -r1.14 -r1.15 *** src/usr.bin/tmux/cmd-if-shell.c 2011/10/27 22:40:15 1.14 --- src/usr.bin/tmux/cmd-if-shell.c 2012/07/10 11:53:01 1.15 *************** *** 1,4 **** ! /* $OpenBSD: cmd-if-shell.c,v 1.14 2011/10/27 22:40:15 nicm Exp $ */ /* * Copyright (c) 2009 Tiago Cunha --- 1,4 ---- ! /* $OpenBSD: cmd-if-shell.c,v 1.15 2012/07/10 11:53:01 nicm Exp $ */ /* * Copyright (c) 2009 Tiago Cunha *************** *** 20,25 **** --- 20,26 ---- #include #include + #include #include #include "tmux.h" *************** *** 91,97 **** if (cmd_string_parse(cmd, &cmdlist, &cause) != 0) { if (cause != NULL) { ctx->error(ctx, "%s", cause); ! xfree(cause); } return; } --- 92,98 ---- if (cmd_string_parse(cmd, &cmdlist, &cause) != 0) { if (cause != NULL) { ctx->error(ctx, "%s", cause); ! free(cause); } return; } *************** *** 115,122 **** if (ctx->curclient != NULL) ctx->curclient->references--; ! if (cdata->cmd_else != NULL) ! xfree(cdata->cmd_else); ! xfree(cdata->cmd_if); ! xfree(cdata); } --- 116,122 ---- if (ctx->curclient != NULL) ctx->curclient->references--; ! free(cdata->cmd_else); ! free(cdata->cmd_if); ! free(cdata); }