From 432f7e45b2ddf511660d269548f248217a2b45ad Mon Sep 17 00:00:00 2001 From: Raghavendra Talur Date: Tue, 4 Feb 2014 15:57:05 +0530 Subject: changelog: When connection is unsuccessful, close socket too. Bug fix for Coverity CID: 1124791 Change-Id: I0362d45123ebc250290f3a5231f7fb113fa41212 BUG: 789278 Signed-off-by: Raghavendra Talur Reviewed-on: http://review.gluster.org/6900 Reviewed-by: Krishnan Parthasarathi Reviewed-by: Santosh Pradhan Reviewed-by: Venky Shankar Tested-by: Gluster Build System --- xlators/features/changelog/lib/src/gf-changelog.c | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators/features/changelog/lib/src/gf-changelog.c') diff --git a/xlators/features/changelog/lib/src/gf-changelog.c b/xlators/features/changelog/lib/src/gf-changelog.c index 1b014640e..4b2b25ad5 100644 --- a/xlators/features/changelog/lib/src/gf-changelog.c +++ b/xlators/features/changelog/lib/src/gf-changelog.c @@ -202,6 +202,7 @@ gf_changelog_notification_init (xlator_t *this, gf_changelog_t *gfc) gf_log (this->name, GF_LOG_ERROR, "could not connect to changelog socket!" " bailing out..."); + close (sockfd); ret = -1; } else gf_log (this->name, GF_LOG_INFO, -- cgit