[Pkg-owncloud-commits] [owncloud-client] 32/70: csync_exclude: Add a missing free of path components.

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 b144a5bbf9f2f41df216b188435496f1e2366103
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Fri Jun 20 11:14:08 2014 +0200

    csync_exclude: Add a missing free of path components.
    
    This fixes Coverity CID 12895
---
 csync/src/csync_exclude.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/csync/src/csync_exclude.c b/csync/src/csync_exclude.c
index 2ae23db..f0e9e82 100644
--- a/csync/src/csync_exclude.c
+++ b/csync/src/csync_exclude.c
@@ -264,6 +264,8 @@ CSYNC_EXCLUDE_TYPE csync_excluded(CSYNC *ctx, const char *path, int filetype) {
 
           if (bname == NULL || dname == NULL) {
               match = CSYNC_NOT_EXCLUDED;
+	      SAFE_FREE(bname);
+	      SAFE_FREE(dname);
               SAFE_FREE(pattern_stored);
               goto out;
           }

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