<div dir="ltr">I see.  In that case, at least store it in a std::unique_ptr<uint8_t[]>.</div><br><div class="gmail_quote"><div dir="ltr">On Mon, May 29, 2017 at 12:22 AM Ravitheja Addepally via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">ravitheja added a comment.<br>
<br>
Hello, the reason I switched to allocating with new (std::nothrow) uint8_t[byte_count]; was because the byte_count is actually user defined and I do want to catch cases where lldb is not able to allocate the requested buffer size.<br>
<br>
<br>
<a href="https://reviews.llvm.org/D32585" rel="noreferrer" target="_blank">https://reviews.llvm.org/D32585</a><br>
<br>
<br>
<br>
</blockquote></div>