aboutsummaryrefslogtreecommitdiff
path: root/testdll.c
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2015-03-15 16:09:44 -0700
committerTimothy Gu <timothygu99@gmail.com>2015-03-15 16:11:05 -0700
commitc421b7010d915a36bfc90c4f0462095ea840bb7a (patch)
tree6e0bc07f6f6b8f180958b4ad6bdac6465e6a27ef /testdll.c
parent77a6dfd8c588a64300ea380bf32256da3b93f1ef (diff)
downloaddlfcn-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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/testdll.c b/testdll.c
index 2c40014..ff99f87 100644
--- a/testdll.c
+++ b/testdll.c
@@ -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)