Merge "Fixed memory leak when using transport:serial."

This commit is contained in:
Nick Kralevich 2011-07-29 16:32:21 -07:00 committed by Android Code Review
commit 810cf41b6d
1 changed files with 1 additions and 1 deletions

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);