summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/jdwp/jdwp_handler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/jdwp/jdwp_handler.cc b/runtime/jdwp/jdwp_handler.cc
index f449406d19..7776f8fad3 100644
--- a/runtime/jdwp/jdwp_handler.cc
+++ b/runtime/jdwp/jdwp_handler.cc
@@ -1391,7 +1391,7 @@ static JdwpError DDM_Chunk(JdwpState* state, Request* request, ExpandBuf* pReply
// heap requirements is probably more valuable than the efficiency.
CHECK_GT(replyLen, 0);
memcpy(expandBufAddSpace(pReply, replyLen), replyBuf, replyLen);
- free(replyBuf);
+ delete[] replyBuf;
}
return ERR_NONE;
}