[PATCH] D17688: Fix missed leak from MSVC specific allocation functions
Alexander Riccio via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 2 14:57:15 PST 2016
ariccio added a comment.
In http://reviews.llvm.org/D17688#366011, @ariccio wrote:
> 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)
Nevermind. I'm uploading a proper patch in the next few minutes.
More information about the cfe-commits