[PATCH] D26347: Fix memory leaks (coverity issues 1365586 & 1365591)

Malcolm Parsons via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 7 01:36:21 PST 2016


malcolm.parsons added inline comments.


================
Comment at: lib/Support/APFloat.cpp:1685
   int parts = partCount();
   integerPart *x = new integerPart[parts];
   bool ignored;
----------------
Why not use std::unique_ptr?


Repository:
  rL LLVM

https://reviews.llvm.org/D26347





More information about the llvm-commits mailing list