[Pkg-owncloud-commits] [owncloud-client] 27/70: httpbf.c: Fix resource leak

Sandro Knauß hefee-guest at moszumanska.debian.org
Tue Jul 1 10:21:20 UTC 2014


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit df8553e878b6bba1865884b86f028fc96206cc35
Author: Daniel Molkentin <danimo at owncloud.com>
Date:   Fri Jun 20 10:47:36 2014 +0200

    httpbf.c: Fix resource leak
    
    This fixes Coverity CID 12902
---
 csync/src/httpbf/src/httpbf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/csync/src/httpbf/src/httpbf.c b/csync/src/httpbf/src/httpbf.c
index 9201afd..eb19c22 100644
--- a/csync/src/httpbf/src/httpbf.c
+++ b/csync/src/httpbf/src/httpbf.c
@@ -536,8 +536,8 @@ Hbf_State hbf_transfer( ne_session *session, hbf_transfer_t *transfer, const cha
             } else {
                 state = HBF_MEMORY_FAIL;
             }
-            free( transfer_url );
         }
+        free( transfer_url );
     }
 
     /* do the source file validation finally (again). */

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list