Revision: 2583 http://tmux.svn.sourceforge.net/tmux/?rev=2583&view=rev Author: tcunha Date: 2011-08-21 12:39:34 +0000 (Sun, 21 Aug 2011)
Log Message: ----------- Sync OpenBSD patchset 947: Fix a couple of memory leaks, from marcel partap. Modified Paths: -------------- trunk/server-client.c trunk/status.c Modified: trunk/server-client.c =================================================================== --- trunk/server-client.c 2011-08-21 12:38:55 UTC (rev 2582) +++ trunk/server-client.c 2011-08-21 12:39:34 UTC (rev 2583) @@ -170,6 +170,8 @@ if (c->cwd != NULL) xfree(c->cwd); + environ_free(&c->environ); + close(c->ibuf.fd); imsg_clear(&c->ibuf); event_del(&c->event); Modified: trunk/status.c =================================================================== --- trunk/status.c 2011-08-21 12:38:55 UTC (rev 2582) +++ trunk/status.c 2011-08-21 12:39:34 UTC (rev 2583) @@ -551,8 +551,10 @@ /* First try in the new tree. */ so_find.cmd = cmd; so = RB_FIND(status_out_tree, &c->status_new, &so_find); - if (so != NULL && so->out != NULL) + if (so != NULL && so->out != NULL) { + xfree(cmd); return (so->out); + } /* If not found at all, start the job and add to the tree. */ if (so == NULL) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 _______________________________________________ tmux-cvs mailing list tmux-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-cvs