=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tty.c,v retrieving revision 1.137 retrieving revision 1.138 diff -c -r1.137 -r1.138 *** src/usr.bin/tmux/tty.c 2012/06/20 12:55:55 1.137 --- src/usr.bin/tmux/tty.c 2012/07/10 11:53:01 1.138 *************** *** 1,4 **** ! /* $OpenBSD: tty.c,v 1.137 2012/06/20 12:55:55 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: tty.c,v 1.138 2012/07/10 11:53:01 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 345,355 **** { tty_close(tty); ! xfree(tty->ccolour); if (tty->path != NULL) ! xfree(tty->path); if (tty->termname != NULL) ! xfree(tty->termname); } void --- 345,355 ---- { tty_close(tty); ! free(tty->ccolour); if (tty->path != NULL) ! free(tty->path); if (tty->termname != NULL) ! free(tty->termname); } void *************** *** 468,474 **** tty_putcode(tty, TTYC_CR); else tty_putcode_ptr1(tty, TTYC_CC, ccolour); ! xfree(tty->ccolour); tty->ccolour = xstrdup(ccolour); } --- 468,474 ---- tty_putcode(tty, TTYC_CR); else tty_putcode_ptr1(tty, TTYC_CC, ccolour); ! free(tty->ccolour); tty->ccolour = xstrdup(ccolour); } *************** *** 1099,1105 **** b64_ntop(ctx->ptr, ctx->num, buf, off); tty_putcode_ptr2(tty, TTYC_MS, "", buf); ! xfree(buf); } void --- 1099,1105 ---- b64_ntop(ctx->ptr, ctx->num, buf, off); tty_putcode_ptr2(tty, TTYC_MS, "", buf); ! free(buf); } void