(ITS#4805) memory leak in syncrepl code