subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1331228 - /subversion/trunk/subversion/libsvn_ra_svn/marshal.c
Date Fri, 27 Apr 2012 05:44:24 GMT
Author: stefan2
Date: Fri Apr 27 05:44:24 2012
New Revision: 1331228

URL: http://svn.apache.org/viewvc?rev=1331228&view=rev
Log:
* subversion/libsvn_ra_svn/marshal.c
  (svn_ra_svn_write_string, svn_ra_svn_write_cstring): fix error leak

Found by: danielsh

Modified:
    subversion/trunk/subversion/libsvn_ra_svn/marshal.c

Modified: subversion/trunk/subversion/libsvn_ra_svn/marshal.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_svn/marshal.c?rev=1331228&r1=1331227&r2=1331228&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_svn/marshal.c (original)
+++ subversion/trunk/subversion/libsvn_ra_svn/marshal.c Fri Apr 27 05:44:24 2012
@@ -464,7 +464,7 @@ svn_error_t *svn_ra_svn_write_string(svn
       SVN_ERR(writebuf_writechar(conn, pool, ':'));
     }
   else
-    write_number(conn, pool, str->len, ':');
+    SVN_ERR(write_number(conn, pool, str->len, ':'));
 
   SVN_ERR(writebuf_write(conn, pool, str->data, str->len));
   SVN_ERR(writebuf_writechar(conn, pool, ' '));
@@ -482,7 +482,7 @@ svn_error_t *svn_ra_svn_write_cstring(sv
       SVN_ERR(writebuf_writechar(conn, pool, ':'));
     }
   else
-    write_number(conn, pool, len, ':');
+    SVN_ERR(write_number(conn, pool, len, ':'));
 
   SVN_ERR(writebuf_write(conn, pool, s, len));
   SVN_ERR(writebuf_writechar(conn, pool, ' '));



Mime
View raw message