=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-load-buffer.c,v retrieving revision 1.16 retrieving revision 1.17 diff -c -r1.16 -r1.17 *** src/usr.bin/tmux/cmd-load-buffer.c 2011/01/04 00:42:46 1.16 --- src/usr.bin/tmux/cmd-load-buffer.c 2011/05/18 08:07:44 1.17 *************** *** 1,4 **** ! /* $OpenBSD: cmd-load-buffer.c,v 1.16 2011/01/04 00:42:46 nicm Exp $ */ /* * Copyright (c) 2009 Tiago Cunha --- 1,4 ---- ! /* $OpenBSD: cmd-load-buffer.c,v 1.17 2011/05/18 08:07:44 nicm Exp $ */ /* * Copyright (c) 2009 Tiago Cunha *************** *** 154,160 **** psize = EVBUFFER_LENGTH(c->stdin_event->input); if (psize == 0 || (pdata = malloc(psize + 1)) == NULL) { ! free(data); return; } bufferevent_read(c->stdin_event, pdata, psize); --- 154,160 ---- psize = EVBUFFER_LENGTH(c->stdin_event->input); if (psize == 0 || (pdata = malloc(psize + 1)) == NULL) { ! xfree(data); return; } bufferevent_read(c->stdin_event, pdata, psize); *************** *** 170,174 **** bufferevent_enable(c->stderr_event, EV_WRITE); } ! free (data); } --- 170,174 ---- bufferevent_enable(c->stderr_event, EV_WRITE); } ! xfree(data); }