[Lldb-commits] [PATCH] D32585: Implementation of remote packets for Trace data.

Zachary Turner via lldb-commits lldb-commits at lists.llvm.org
Fri May 26 07:54:05 PDT 2017


Or just use a std vector
On Fri, May 26, 2017 at 7:00 AM Pavel Labath via Phabricator <
reviews at reviews.llvm.org> wrote:

> labath added inline comments.
>
>
> ================
> Comment at:
> source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp:1304
> +  // Allocate the response buffer.
> +  uint8_t *buffer = new (std::nothrow) uint8_t[byte_count];
> +  if (buffer == nullptr)
> ----------------
> Hey, ravi. You're leaking memory here. Please put this in a
> `std::unique_ptr<uint8_t[]>` so we make sure it get's cleaned up. (No need
> to request formal review)
>
>
> https://reviews.llvm.org/D32585
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20170526/ee3e5ded/attachment.html>


More information about the lldb-commits mailing list