[#1376] Fixed free/delete mismatch on resource groups in rsDataObjRepl, as well as the resulting memory leak