Revision: 2520
          http://tmux.svn.sourceforge.net/tmux/?rev=2520&view=rev
Author:   tcunha
Date:     2011-05-26 20:16:17 +0000 (Thu, 26 May 2011)

Log Message:
-----------
Sync OpenBSD patchset 920:

Memory leak in error path, from Tiago Cunha.

Modified Paths:
--------------
    trunk/cmd-set-buffer.c

Modified: trunk/cmd-set-buffer.c
===================================================================
--- trunk/cmd-set-buffer.c      2011-05-26 20:12:07 UTC (rev 2519)
+++ trunk/cmd-set-buffer.c      2011-05-26 20:16:17 UTC (rev 2520)
@@ -1,4 +1,4 @@
-/* $Id: cmd-set-buffer.c,v 1.14 2011-01-07 14:45:34 tcunha Exp $ */
+/* $Id$ */
 
 /*
  * Copyright (c) 2007 Nicholas Marriott <[email protected]>
@@ -61,6 +61,7 @@
        if (cause != NULL) {
                ctx->error(ctx, "buffer %s", cause);
                xfree(cause);
+               xfree(pdata);
                return (-1);
        }
 


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

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to