summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorPoornima <pgurusid@redhat.com>2014-02-09 23:29:23 +0000
committerVijay Bellur <vbellur@redhat.com>2014-06-11 23:07:04 -0700
commitcc6608dbaabac6e46d7f36d964c861cfbaac8f59 (patch)
treeea08c3b372fcb5dd3dc86938f58ac11b74b91373 /xlators
parent5906be31845f6a63ff9d5cd15ad0c13af51b81ea (diff)
protocol: Fix a possible memory leak.
Change-Id: Ia3e7e33389b4d3a5e058b6b2fb2f1c3cb224d6fd BUG: 789278 Signed-off-by: Poornima <pgurusid@redhat.com> Signed-off-by: Poornima G <pgurusid@redhat.com> Reviewed-on: http://review.gluster.org/6950 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/protocol/server/src/server.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/xlators/protocol/server/src/server.c b/xlators/protocol/server/src/server.c
index e551fd757a1..04faee290ea 100644
--- a/xlators/protocol/server/src/server.c
+++ b/xlators/protocol/server/src/server.c
@@ -421,11 +421,10 @@ _check_for_auth_option (dict_t *d, char *k, data_t *v,
else
addr = NULL;
}
-
- GF_FREE (tmp_addr_list);
- tmp_addr_list = NULL;
}
out:
+ GF_FREE (tmp_addr_list);
+
return ret;
}