From 29f2de478cc6a475e6ae760d9cbe7ac847e9d79c Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Fri, 13 Apr 2012 17:29:41 +0530 Subject: core: coverity issues fixed this is not a complete set of issues getting fixed. Will address other issues in another patch. Change-Id: Ib01c7b11b205078cc4d0b3f11610751e32d14b69 Signed-off-by: Amar Tumballi BUG: 789278 Reviewed-on: http://review.gluster.com/3145 Tested-by: Gluster Build System Reviewed-by: Jeff Darcy --- xlators/features/index/src/index.c | 3 +++ xlators/features/quota/src/quota.c | 3 +++ 2 files changed, 6 insertions(+) (limited to 'xlators/features') diff --git a/xlators/features/index/src/index.c b/xlators/features/index/src/index.c index ead20e06f88..8f630f2f94e 100644 --- a/xlators/features/index/src/index.c +++ b/xlators/features/index/src/index.c @@ -1079,6 +1079,9 @@ init (xlator_t *this) } ret = 0; out: + if (!this->private && priv) + GF_FREE (priv); + return ret; } diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c index f6c4e0099b9..436fb1b1cb1 100644 --- a/xlators/features/quota/src/quota.c +++ b/xlators/features/quota/src/quota.c @@ -497,6 +497,9 @@ quota_get_limit_value (inode_t *inode, xlator_t *this, int64_t *n) } out: + if (path) + GF_FREE (path); + return ret; } -- cgit