From 4c5f2e41e5460e2cd6b725e28c50a29923a86021 Mon Sep 17 00:00:00 2001
From: cub <qubard@gmail.com>
Date: Mon, 17 Sep 2018 02:45:11 -0300
Subject: [PATCH] replace malloc with make_unique

---
 src/singletons/NativeMessaging.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/singletons/NativeMessaging.cpp b/src/singletons/NativeMessaging.cpp
index ed113f716..bedfc7387 100644
--- a/src/singletons/NativeMessaging.cpp
+++ b/src/singletons/NativeMessaging.cpp
@@ -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;