diff options
author | Timothy Gu <timothygu99@gmail.com> | 2015-03-15 16:09:44 -0700 |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2015-03-15 16:11:05 -0700 |
commit | c421b7010d915a36bfc90c4f0462095ea840bb7a (patch) | |
tree | 6e0bc07f6f6b8f180958b4ad6bdac6465e6a27ef /testdll.c | |
parent | 77a6dfd8c588a64300ea380bf32256da3b93f1ef (diff) | |
download | dlfcn-win32-c421b7010d915a36bfc90c4f0462095ea840bb7a.tar.gz dlfcn-win32-c421b7010d915a36bfc90c4f0462095ea840bb7a.tar.bz2 dlfcn-win32-c421b7010d915a36bfc90c4f0462095ea840bb7a.zip |
Check for memory leak when _DEBUG is defined
Diffstat (limited to 'testdll.c')
-rw-r--r-- | testdll.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -17,6 +17,11 @@ | |||
17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
18 | */ | 18 | */ |
19 | 19 | ||
20 | #ifdef _DEBUG | ||
21 | #define _CRTDBG_MAP_ALLOC | ||
22 | #include <stdlib.h> | ||
23 | #include <crtdbg.h> | ||
24 | #endif | ||
20 | #include <stdio.h> | 25 | #include <stdio.h> |
21 | 26 | ||
22 | #if defined(_WIN32) | 27 | #if defined(_WIN32) |