ART: Fix misc-uniqueptr-reset-release

Bug: 32619234
Test: m test-art-host
Change-Id: Iffed77347180aca0f356a03db02ddbe0200b1e9c
diff --git a/runtime/class_loader_context.cc b/runtime/class_loader_context.cc
index 0bae60a..4eacdad 100644
--- a/runtime/class_loader_context.cc
+++ b/runtime/class_loader_context.cc
@@ -304,11 +304,11 @@
       return nullptr;
     }
     if (first == nullptr) {
-      first.reset(info.release());
+      first = std::move(info);
       previous_iteration = first.get();
     } else {
       CHECK(previous_iteration != nullptr);
-      previous_iteration->parent.reset(info.release());
+      previous_iteration->parent = std::move(info);
       previous_iteration = previous_iteration->parent.get();
     }
   }