aboutsummaryrefslogtreecommitdiffstats
path: root/adb
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2011-07-29 16:32:21 -0700
committerAndroid Code Review <code-review@android.com>2011-07-29 16:32:21 -0700
commit810cf41b6d5b772846bbb16700f8c69f03710e60 (patch)
treeaba9216f55eaa7f403385345b204aab341618619 /adb
parentd1015de919308ec0a99643f5b2837774d7a3dc62 (diff)
parent3175c8e9bfcb01f181d7300755da15a999e5461c (diff)
downloadsystem_core-810cf41b6d5b772846bbb16700f8c69f03710e60.tar.gz
system_core-810cf41b6d5b772846bbb16700f8c69f03710e60.tar.bz2
system_core-810cf41b6d5b772846bbb16700f8c69f03710e60.zip
Merge "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 f5e6e0c0..a7d327b7 100644
--- a/adb/adb.c
+++ b/adb/adb.c
@@ -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);