First I created a MFC Dialog project, then add "basic_dp_complex_dft_2d.c" to this project, and change "int main(void)" to "int fft_mkl(void)", then call fft_mkl in the MFC App. When the program exited, memory leaks were detected.
Some details is like
"
The thread 'Win32 Thread' (0x1648) has exited with code 2 (0x2).
First-chance exception at 0x7c812afb in testmkl_MFC.exe: 0xA1A01DB2: 0xa1a01db2.
Detected memory leaks!
Dumping objects ->
{209} normal block at 0x003BEB18, 512 bytes long.
Data: < > CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD
{208} normal block at 0x02883788, 104 bytes long.
Data: < ; > 18 EB 3B 00 00 00 00 00 00 00 00 00 00 00 00 00
Object dump complete.
The program '[3496] testmkl_MFC.exe: Native' has exited with code 2 (0x2).
"
When I added"basic_dp_complex_dft_2d.c" to a console program, and memory leaks were not found.
My MKL version is 10.3.6.