Remove uses of scoped_ptr_malloc.

Change-Id: I355fcfc93e8d689bea8b9388423ca12cb3e6566f
diff --git a/src/utils.cc b/src/utils.cc
index 695cbb3..b908c4d 100644
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -189,4 +189,20 @@
   return long_name;
 }
 
+void Split(const std::string& s, char delim, std::vector<std::string>& result) {
+  const char* p = s.data();
+  const char* end = p + s.size();
+  while (p != end) {
+    if (*p == delim) {
+      ++p;
+    } else {
+      const char* start = p;
+      while (++p != end && *p != delim) {
+        // Skip to the next occurrence of the delimiter.
+      }
+      result.push_back(std::string(start, p - start));
+    }
+  }
+}
+
 }  // namespace art