From b313b72ab0bf1fbc92b8b201ea4154ce5fd73c88 Mon Sep 17 00:00:00 2001 From: Soumya Koduri Date: Wed, 13 Jan 2016 11:34:27 +0530 Subject: upcall: free the xdr* allocations Free the xdr string allocations after decoding the upcall cache_invalidation request. This is backport of the below fix - http://review.gluster.org/13232 Change-Id: I0ffc64f587d6c8566cba76cf08148f937a735926 BUG: 1300924 Signed-off-by: Soumya Koduri Reviewed-on: http://review.gluster.org/13232 Reviewed-by: Niels de Vos Reviewed-by: Kaleb KEITHLEY Reviewed-on: http://review.gluster.org/13277 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System --- xlators/protocol/client/src/client-callback.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xlators/protocol/client/src/client-callback.c b/xlators/protocol/client/src/client-callback.c index d36a64b076e..3577330a223 100644 --- a/xlators/protocol/client/src/client-callback.c +++ b/xlators/protocol/client/src/client-callback.c @@ -77,6 +77,12 @@ client_cbk_cache_invalidation (struct rpc_clnt *rpc, void *mydata, void *data) default_notify (THIS, GF_EVENT_UPCALL, &upcall_data); out: + if (ca_req.gfid) + free (ca_req.gfid); + + if (ca_req.xdata.xdata_val) + free (ca_req.xdata.xdata_val); + return 0; } -- cgit