diff options
author | Nick Kralevich <nnk@google.com> | 2011-07-29 16:44:22 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-07-29 16:44:22 -0700 |
commit | adabe566906aa5e8ce791327559aeb10c139b365 (patch) | |
tree | aba9216f55eaa7f403385345b204aab341618619 | |
parent | 7d39463eff2a9002208f34f1d2ce4d62546f6c3a (diff) | |
parent | 810cf41b6d5b772846bbb16700f8c69f03710e60 (diff) | |
download | system_core-adabe566906aa5e8ce791327559aeb10c139b365.zip system_core-adabe566906aa5e8ce791327559aeb10c139b365.tar.gz system_core-adabe566906aa5e8ce791327559aeb10c139b365.tar.bz2 |
am 810cf41b: Merge "Fixed memory leak when using transport:serial."
* commit '810cf41b6d5b772846bbb16700f8c69f03710e60':
Fixed memory leak when using transport:serial.
-rw-r--r-- | adb/adb.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |