OSDN Git Service
(root)
/
android-x86
/
dalvik.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf452d4
)
Fix a minor leak in handleVM_CreateString
author
You Kim
<you.kim72@gmail.com>
Tue, 2 Apr 2013 17:47:24 +0000
(
02:47
+0900)
committer
You Kim
<you.kim72@gmail.com>
Tue, 2 Apr 2013 17:47:24 +0000
(
02:47
+0900)
Change-Id: I3273e5d2eb4621202837c43270a466fe056d6894
vm/jdwp/JdwpHandler.cpp
patch
|
blob
|
history
diff --git
a/vm/jdwp/JdwpHandler.cpp
b/vm/jdwp/JdwpHandler.cpp
index
5ce432c
..
9126584
100644
(file)
--- a/
vm/jdwp/JdwpHandler.cpp
+++ b/
vm/jdwp/JdwpHandler.cpp
@@
-376,6
+376,7
@@
static JdwpError handleVM_CreateString(JdwpState* state,
ALOGV(" Req to create string '%s'", str);
ObjectId stringId = dvmDbgCreateString(str);
+ free(str);
if (stringId == 0)
return ERR_OUT_OF_MEMORY;