llvm.org GIT mirror llvm / 4cd3145
Use 'delete []' instead of 'delete' in OwningArray::reset(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60703 91177308-0d34-0410-b5e6-96231b3b80d8 Ted Kremenek 11 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
9595 if (P == Ptr) return;
9696 T *Tmp = Ptr;
9797 Ptr = P;
98 delete Tmp;
98 delete [] Tmp;
9999 }
100100
101101 /// take - Reset the owning pointer to null and return its pointer. This does