diff options
author | Raghavan P <rpichai@redhat.com> | 2014-01-16 15:19:37 +0530 |
---|---|---|
committer | Raghavan P <rpichai@redhat.com> | 2014-01-16 15:20:23 +0530 |
commit | 8864d23bb95ed8d3e8ac4a3024d64cf5cf1ee430 (patch) | |
tree | 10bd232913ba948d46bdbba326c6274650a6d052 /xlators/cluster/nsr-recon | |
parent | 11b66cdded42debfa1877b2d11288f86ea524352 (diff) |
Fixeda bug where a NULL pointer exception happens on resolution part
Signed-off-by: Raghavan P <rpichai@redhat.com>
Change-Id: I71ea6c14007ac49ec2859261dd39317e4c0367d4
Diffstat (limited to 'xlators/cluster/nsr-recon')
-rw-r--r-- | xlators/cluster/nsr-recon/src/recon_driver.c | 8 |
1 files changed, 4 insertions, 4 deletions
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++) { |