From 8864d23bb95ed8d3e8ac4a3024d64cf5cf1ee430 Mon Sep 17 00:00:00 2001 From: Raghavan P Date: Thu, 16 Jan 2014 15:19:37 +0530 Subject: Fixeda bug where a NULL pointer exception happens on resolution part Signed-off-by: Raghavan P Change-Id: I71ea6c14007ac49ec2859261dd39317e4c0367d4 --- xlators/cluster/nsr-recon/src/recon_driver.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'xlators/cluster/nsr-recon') diff --git a/xlators/cluster/nsr-recon/src/recon_driver.c b/xlators/cluster/nsr-recon/src/recon_driver.c index 2e2299ad1..0d5560957 100644 --- a/xlators/cluster/nsr-recon/src/recon_driver.c +++ b/xlators/cluster/nsr-recon/src/recon_driver.c @@ -1204,10 +1204,10 @@ compute_resolution_work(nsr_recon_driver_ctx_t *ctx, if (invalidate) { if (my_info->records) { GF_FREE(my_info->records); - my_info->records = GF_CALLOC(num, - sizeof(nsr_reconciliation_record_t), - gf_mt_recon_private_t); - } + } + my_info->records = GF_CALLOC(num, + sizeof(nsr_reconciliation_record_t), + gf_mt_recon_private_t); } for (i=0; i < num; i++) { -- cgit