levy5307 commented on a change in pull request #648:
URL: https://github.com/apache/incubator-pegasus/pull/648#discussion_r538006955



##########
File path: src/server/test/pegasus_server_write_test.cpp
##########
@@ -67,7 +67,12 @@ class pegasus_server_write_test : public 
pegasus_server_test_base
                 for (int i = put_rpc_cnt; i < total_rpc_cnt; i++) {
                     writes[i] = pegasus::create_remove_request(key);
                 }
-                auto cleanup = dsn::defer([=]() { delete[] writes; });
+                auto cleanup = dsn::defer([=]() {

Review comment:
       `for (auto &write : writes)`




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to