am 810cf41b: Merge "Fixed memory leak when using transport:serial."

* commit '810cf41b6d5b772846bbb16700f8c69f03710e60':
  Fixed memory leak when using transport:serial.
This commit is contained in:
Nick Kralevich 2011-07-29 16:44:22 -07:00 committed by Android Git Automerger
commit adabe56690

View file

@ -1108,7 +1108,7 @@ int handle_host_request(char *service, transport_type ttype, char* serial, int r
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);