am 810cf41b: Merge "Fixed memory leak when using transport:serial."
* commit '810cf41b6d5b772846bbb16700f8c69f03710e60': Fixed memory leak when using transport:serial.
This commit is contained in:
commit
adabe56690
1 changed files with 1 additions and 1 deletions
|
|
@ -1108,7 +1108,7 @@ int handle_host_request(char *service, transport_type ttype, char* serial, int r
|
||||||
type = kTransportAny;
|
type = kTransportAny;
|
||||||
} else if (!strncmp(service, "transport:", strlen("transport:"))) {
|
} else if (!strncmp(service, "transport:", strlen("transport:"))) {
|
||||||
service += strlen("transport:");
|
service += strlen("transport:");
|
||||||
serial = strdup(service);
|
serial = service;
|
||||||
}
|
}
|
||||||
|
|
||||||
transport = acquire_one_transport(CS_ANY, type, serial, &error_string);
|
transport = acquire_one_transport(CS_ANY, type, serial, &error_string);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue