Revision: 2683
          http://tmux.svn.sourceforge.net/tmux/?rev=2683&view=rev
Author:   tcunha
Date:     2012-01-29 12:51:43 +0000 (Sun, 29 Jan 2012)
Log Message:
-----------
Sync OpenBSD patchset 1012:

Fix memory leak in error path, from Tiago Cunha.

Modified Paths:
--------------
    trunk/status.c

Modified: trunk/status.c
===================================================================
--- trunk/status.c      2012-01-27 09:01:06 UTC (rev 2682)
+++ trunk/status.c      2012-01-29 12:51:43 UTC (rev 2683)
@@ -462,12 +462,13 @@
                ptrlen = limit;
 
        if (*optr + ptrlen >= out + outsize - 1)
-               return;
+               goto out;
        while (ptrlen > 0 && *ptr != '\0') {
                *(*optr)++ = *ptr++;
                ptrlen--;
        }
 
+out:
        if (freeptr != NULL)
                xfree(freeptr);
        return;

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to