From ab56ec1e99cd76d45b52d841e6b0009f94a3268b Mon Sep 17 00:00:00 2001 From: Zhou Zhengping Date: Sun, 10 Jul 2016 09:10:49 -0400 Subject: rpc: fix several problems in failure handle logic Once dynstr is set into a dict by function dict_set_dynstr, its free operation will be called by this dict when the dict is destroyed. Signed-off-by: Zhou Zhengping Change-Id: Idd2bd19a041bcb477e1c897428ca1740fb75c5f3 BUG: 1354141 Reviewed-on: http://review.gluster.org/14882 Tested-by: Zhou Zhengping NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Vijay Bellur Smoke: Gluster Build System --- libglusterfs/src/dict.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'libglusterfs/src') diff --git a/libglusterfs/src/dict.c b/libglusterfs/src/dict.c index 25ddff0d8c4..6f7adb51589 100644 --- a/libglusterfs/src/dict.c +++ b/libglusterfs/src/dict.c @@ -258,8 +258,6 @@ data_copy (data_t *old) return newdata; err_out: - - FREE (newdata->data); mem_put (newdata); return NULL; -- cgit