=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-split-window.c,v retrieving revision 1.33 retrieving revision 1.34 diff -c -r1.33 -r1.34 *** src/usr.bin/tmux/cmd-split-window.c 2012/05/22 11:35:37 1.33 --- src/usr.bin/tmux/cmd-split-window.c 2012/07/10 11:53:01 1.34 *************** *** 1,4 **** ! /* $OpenBSD: cmd-split-window.c,v 1.33 2012/05/22 11:35:37 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: cmd-split-window.c,v 1.34 2012/07/10 11:53:01 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott *************** *** 94,100 **** size = args_strtonum(args, 'l', 0, INT_MAX, &cause); if (cause != NULL) { xasprintf(&new_cause, "size %s", cause); ! xfree(cause); cause = new_cause; goto error; } --- 94,100 ---- size = args_strtonum(args, 'l', 0, INT_MAX, &cause); if (cause != NULL) { xasprintf(&new_cause, "size %s", cause); ! free(cause); cause = new_cause; goto error; } *************** *** 102,108 **** percentage = args_strtonum(args, 'p', 0, INT_MAX, &cause); if (cause != NULL) { xasprintf(&new_cause, "percentage %s", cause); ! xfree(cause); cause = new_cause; goto error; } --- 102,108 ---- percentage = args_strtonum(args, 'p', 0, INT_MAX, &cause); if (cause != NULL) { xasprintf(&new_cause, "percentage %s", cause); ! free(cause); cause = new_cause; goto error; } *************** *** 151,157 **** cp = format_expand(ft, template); ctx->print(ctx, "%s", cp); ! xfree(cp); format_free(ft); } --- 151,157 ---- cp = format_expand(ft, template); ctx->print(ctx, "%s", cp); ! free(cp); format_free(ft); } *************** *** 163,168 **** if (new_wp != NULL) window_remove_pane(w, new_wp); ctx->error(ctx, "create pane failed: %s", cause); ! xfree(cause); return (-1); } --- 163,168 ---- if (new_wp != NULL) window_remove_pane(w, new_wp); ctx->error(ctx, "create pane failed: %s", cause); ! free(cause); return (-1); }