Merge "Remove dangling ptr in rsdAllocationInit"