From 9e0ec224148e1d3e0406eb5aa4479f3dca0d597b Mon Sep 17 00:00:00 2001 From: Raghavendra Talur Date: Thu, 13 Feb 2014 12:31:58 +0530 Subject: protocol/auth: Fix a possible double free. Assign NULL to addr_cpy to avoid double free. Fix for coverity CID: 1124891 Change-Id: I0cd6721f066170190d8b5441ecdbc1704ed5e75b BUG: 789278 Signed-off-by: Raghavendra Talur Reviewed-on: http://review.gluster.org/6993 Tested-by: Gluster Build System Reviewed-by: Krishnan Parthasarathi Reviewed-by: Anand Avati --- xlators/protocol/auth/addr/src/addr.c | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators/protocol') diff --git a/xlators/protocol/auth/addr/src/addr.c b/xlators/protocol/auth/addr/src/addr.c index 64e8d0fc6..181d091bd 100644 --- a/xlators/protocol/auth/addr/src/addr.c +++ b/xlators/protocol/auth/addr/src/addr.c @@ -181,6 +181,7 @@ gf_auth (dict_t *input_params, dict_t *config_params) addr_str = strtok_r (NULL, ADDR_DELIMITER, &tmp); } GF_FREE (addr_cpy); + addr_cpy = NULL; } if (allow_addr) { -- cgit