Merge pull request #708 from qubard/patch-2

replace malloc with make_unique (minor)
This commit is contained in:
pajlada
2018-09-17 10:45:53 +02:00
committed by GitHub
+1 -2
View File
@@ -147,8 +147,7 @@ void NativeMessagingServer::ReceiverThread::run()
while (true) {
try {
std::unique_ptr<char> buf(
static_cast<char *>(malloc(MESSAGE_SIZE)));
std::unique_ptr<char> buf = std::make_unique<char>(MESSAGE_SIZE);
ipc::message_queue::size_type retSize;
unsigned int priority;