summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSoumya Koduri <skoduri@redhat.com>2016-01-13 11:34:27 +0530
committerKaleb KEITHLEY <kkeithle@redhat.com>2016-01-14 03:39:24 -0800
commit7d6e5dad15b7ecf2e8abce468aea9fd84b876052 (patch)
tree76e40dce5582c3e959829fa8fd567af82861ceed
parentced0f360e4606ecf66a73ece54553523567f9995 (diff)
upcall: free the xdr* allocations
Free the xdr string allocations after decoding the upcall cache_invalidation request. Change-Id: I0ffc64f587d6c8566cba76cf08148f937a735926 BUG: 1295107 Signed-off-by: Soumya Koduri <skoduri@redhat.com> Reviewed-on: http://review.gluster.org/13232 Reviewed-by: Niels de Vos <ndevos@redhat.com> Tested-by: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
-rw-r--r--xlators/protocol/client/src/client-callback.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xlators/protocol/client/src/client-callback.c b/xlators/protocol/client/src/client-callback.c
index ea8acc910fe..16f5441a778 100644
--- a/xlators/protocol/client/src/client-callback.c
+++ b/xlators/protocol/client/src/client-callback.c
@@ -72,6 +72,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;
}