am 810cf41b: Merge "Fixed memory leak when using transport:serial."
* commit '810cf41b6d5b772846bbb16700f8c69f03710e60':
Fixed memory leak when using transport:serial.
diff --git a/adb/adb.c b/adb/adb.c
index f5e6e0c..a7d327b 100644
--- a/adb/adb.c
+++ b/adb/adb.c
@@ -1108,7 +1108,7 @@
type = kTransportAny;
} else if (!strncmp(service, "transport:", strlen("transport:"))) {
service += strlen("transport:");
- serial = strdup(service);
+ serial = service;
}
transport = acquire_one_transport(CS_ANY, type, serial, &error_string);