summaryrefslogtreecommitdiffstats
path: root/adb
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2011-07-29 16:51:35 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-07-29 16:51:35 -0700
commit514b40bafada989c63f8a3d42a517c6c53e04b02 (patch)
tree24e393210f188b815f5d118e36e38197bad51d76 /adb
parent363725a45d70537195af87ed16f905e38cd6ee79 (diff)
parent189de0c1f4339abd7b938b4905775163d2a94bbe (diff)
downloadsystem_core-514b40bafada989c63f8a3d42a517c6c53e04b02.zip
system_core-514b40bafada989c63f8a3d42a517c6c53e04b02.tar.gz
system_core-514b40bafada989c63f8a3d42a517c6c53e04b02.tar.bz2
am 189de0c1: am adabe566: am 810cf41b: Merge "Fixed memory leak when using transport:serial."
* commit '189de0c1f4339abd7b938b4905775163d2a94bbe': Fixed memory leak when using transport:serial.
Diffstat (limited to 'adb')
-rw-r--r--adb/adb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/adb/adb.c b/adb/adb.c
index b0a70dc..4207365 100644
--- a/adb/adb.c
+++ b/adb/adb.c
@@ -1110,7 +1110,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);