Open Quuxplusone opened 7 years ago
Bugzilla Link | PR32234 |
Status | NEW |
Importance | P enhancement |
Reported by | Kevin Marshall (marshallk@google.com) |
Reported on | 2017-03-10 14:38:21 -0800 |
Last modified on | 2017-03-10 15:17:59 -0800 |
Version | unspecified |
Hardware | PC Linux |
CC | ganna@apple.com, llvm-bugs@lists.llvm.org |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
Seeing a similar error for the array specialization of unique_ptr, too:
../../build/linux/debian_wheezy_amd64-sysroot/usr/lib/gcc/x86_64-linux-
gnu/4.6/../../../../include/c++/4.6/bits/unique_ptr.h:321:2: warning: Potential
memory leak
return *this;
^
../../third_party/webrtc/modules/audio_coding/neteq/packet.cc:29:3: note:
Calling 'BufferT::SetData'
clone.payload.SetData(payload.data(), payload.size());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../third_party/webrtc/base/buffer.h:190:5: note: Calling
'BufferT::AppendData'
AppendData(data, size);
^~~~~~~~~~~~~~~~~~~~~~
../../third_party/webrtc/base/buffer.h:233:5: note: Calling
'BufferT::EnsureCapacityWithHeadroom'
EnsureCapacityWithHeadroom(new_size, true);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../third_party/webrtc/base/buffer.h:322:5: note: Taking false branch
if (capacity <= capacity_)
^
../../third_party/webrtc/base/buffer.h:331:9: note: '?' condition is true
extra_headroom ? std::max(capacity, capacity_ + capacity_ / 2)
^
../../third_party/webrtc/base/buffer.h:334:35: note: Memory is allocated
std::unique_ptr<T[]> new_data(new T[new_capacity]);
^~~
../../third_party/webrtc/base/buffer.h:336:5: note: Calling move assignment
operator for 'unique_ptr'
data_ = std::move(new_data);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
Included this internally in rdar://problem/30958661 Re-enable reporting bugs that end in C++ stdlib