Update of /cvsroot/monetdb/pathfinder/runtime
In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv13725/runtime

Modified Files:
      Tag: XQFT
        xrpc_client.mx 
Log Message:
propagated changes of Wednesday Dec 09 2009
from the development trunk to the XQFT branch

  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2009/12/09 - sjoerd: runtime/xrpc_client.mx,1.58
  propagated changes of Monday Dec 07 2009 - Wednesday Dec 09 2009
  from the Nov2009 branch to the development trunk
  
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    2009/12/07 - sjoerd: runtime/xrpc_client.mx,1.56.2.3
            runtime/xrpc_client.mx,1.56.2.2
    Free buffer when it was only partially allocated.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Index: xrpc_client.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/runtime/xrpc_client.mx,v
retrieving revision 1.56.4.1
retrieving revision 1.56.4.2
diff -u -d -r1.56.4.1 -r1.56.4.2
--- xrpc_client.mx      12 Nov 2009 08:47:02 -0000      1.56.4.1
+++ xrpc_client.mx      9 Dec 2009 13:58:59 -0000       1.56.4.2
@@ -734,6 +734,8 @@
     resp = buffer_create(MAX_BUF_SIZE);
     if (!resp || resp->len == 0) {
         GDKerror("response2bat: failed to create buffer for XRPC response 
message\n");
+        if (resp)
+            buffer_destroy(resp);
         return NULL;
     }
 
@@ -893,6 +895,8 @@
         }
     } else {
         GDKerror("byvalue_request: failed to create outgoing buffer\n");
+        if (b)
+            buffer_destroy(b);
         return NULL;
     }
 


------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to