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

Alexander Riccio via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 28 15:05:41 PST 2016

ariccio added a comment.

//(This is mostly for my own reference)//
BTW, there are a few other non-MS-only functions in the C standard library that allocate memory that needs to be free()d:

1. getcwd (and _getcwd/_wgetcwd)

And some MS-specific functions that I'm surprised are actually MS-only:

1. _getdcwd/_wgetdcwd
2. _dupenv_s/_wdupenv_s
3. _fullpath/_wfullpath


More information about the cfe-commits mailing list