Merge "Fixed memory leak when using transport:serial."
This commit is contained in:
commit
810cf41b6d
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