[Pkg-owncloud-commits] [owncloud-client] 28/70: statedb.c: fix potential memory leak on win32
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 c263c38cdf2b2630037449e8920dda2b46535954
Author: Daniel Molkentin <danimo at owncloud.com>
Date: Fri Jun 20 10:57:57 2014 +0200
statedb.c: fix potential memory leak on win32
This fixes coverity issue 12898
---
csync/src/csync_statedb.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/csync/src/csync_statedb.c b/csync/src/csync_statedb.c
index f62adcb..c593b42 100644
--- a/csync/src/csync_statedb.c
+++ b/csync/src/csync_statedb.c
@@ -69,12 +69,13 @@ static void _csync_win32_hide_file( const char *file ) {
fileName = c_utf8_to_locale( file );
dwAttrs = GetFileAttributesW(fileName);
- if (dwAttrs==INVALID_FILE_ATTRIBUTES) return;
+ if (dwAttrs==INVALID_FILE_ATTRIBUTES) goto cleanup;
if (!(dwAttrs & FILE_ATTRIBUTE_HIDDEN)) {
SetFileAttributesW(fileName, dwAttrs | FILE_ATTRIBUTE_HIDDEN );
}
+cleanup:
c_free_locale_string(fileName);
#else
(void) file;
--
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