[PATCH] D17688: Fix missed leak from MSVC specific allocation functions

Alexander Riccio via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 1 19:02:56 PST 2016


ariccio added a comment.

In http://reviews.llvm.org/D17688#365951, @zaks.anna wrote:

> ls ./clang/test/Analysis/malloc*


Ah, ok. Would it be ok if (for _strdup & _alloca) I just do this at the beginning:

  #if defined(_WIN32)
  
  #define strdup _strdup
  #define alloca _alloca
  
  #endif //defined(_WIN32)


http://reviews.llvm.org/D17688





More information about the cfe-commits mailing list