summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2011-07-29 16:44:22 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-07-29 16:44:22 -0700
commitadabe566906aa5e8ce791327559aeb10c139b365 (patch)
treeaba9216f55eaa7f403385345b204aab341618619
parent7d39463eff2a9002208f34f1d2ce4d62546f6c3a (diff)
parent810cf41b6d5b772846bbb16700f8c69f03710e60 (diff)
downloadsystem_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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/adb/adb.c b/adb/adb.c
index f5e6e0c..a7d327b 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);