[Pkg-owncloud-commits] [owncloud-client] 25/70: c_time: Fix resource leak in error case

Sandro Knauß hefee-guest at moszumanska.debian.org
Tue Jul 1 10:21:19 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 f9710cc1d521248232a20662cd65f64a09f663ea
Author: Daniel Molkentin <danimo at owncloud.com>
Date:   Fri Jun 20 10:39:13 2014 +0200

    c_time: Fix resource leak in error case
    
    This fixes Coverity CID 12903
---
 csync/src/std/c_time.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/csync/src/std/c_time.c b/csync/src/std/c_time.c
index 62d43c8..cf57a5e 100644
--- a/csync/src/std/c_time.c
+++ b/csync/src/std/c_time.c
@@ -135,7 +135,8 @@ int c_utimes(const char *uri, const struct timeval *times) {
     if(!SetFileTime(hFile, NULL, &LastAccessTime, &LastModificationTime)) {
         //can this happen?
         errno=ENOENT;
-	CloseHandle(hFile);
+        CloseHandle(hFile);
+        c_free_locale_string(wuri);
         return -1;
     }
 

-- 
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