Update of /cvsroot/tmux/tmux In directory vz-cvs-2.sog:/tmp/cvs-serv1872 Modified Files: cmd-load-buffer.c Log Message: Sync OpenBSD patchset 912:
Use xfree not free, from Tiago Cunha. Index: cmd-load-buffer.c =================================================================== RCS file: /cvsroot/tmux/tmux/cmd-load-buffer.c,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- cmd-load-buffer.c 7 Jan 2011 14:45:34 -0000 1.20 +++ cmd-load-buffer.c 18 May 2011 20:33:55 -0000 1.21 @@ -154,7 +154,7 @@ psize = EVBUFFER_LENGTH(c->stdin_event->input); if (psize == 0 || (pdata = malloc(psize + 1)) == NULL) { - free(data); + xfree(data); return; } bufferevent_read(c->stdin_event, pdata, psize); @@ -170,5 +170,5 @@ bufferevent_enable(c->stderr_event, EV_WRITE); } - free (data); + xfree(data); } ------------------------------------------------------------------------------ What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ tmux-cvs mailing list tmux-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-cvs