Invalid read of size 4 at PdhCloseQuery (pdh_main.c:395) by test_PdhOpenQueryA (pdh.c:83) by func_pdh (pdh.c:968) by run_test (test.h:541) by main (test.h:591) Address 0x7f0057b0 is not stack'd, malloc'd or (recently) free'd { Memcheck:Addr4 fun:PdhCloseQuery fun:test_PdhOpenQueryA fun:func_pdh fun:run_test fun:main } Invalid read of size 4 at PdhCloseQuery (pdh_main.c:395) by test_PdhOpenQueryW (pdh.c:107) by func_pdh (pdh.c:969) by run_test (test.h:541) by main (test.h:591) Address 0x7f0057e0 is not stack'd, malloc'd or (recently) free'd { Memcheck:Addr4 fun:PdhCloseQuery fun:test_PdhOpenQueryW fun:func_pdh fun:run_test fun:main } HEAP SUMMARY: in use at exit: 11,995 bytes in 92 blocks total heap usage: 485 allocs, 393 frees, 159,285 bytes allocated LEAK SUMMARY: definitely lost: 0 bytes in 0 blocks indirectly lost: 120 bytes in 10 blocks possibly lost: 136 bytes in 1 blocks still reachable: 5,963 bytes in 40 blocks suppressed: 5,776 bytes in 41 blocks Reachable blocks (those to which a pointer was found) are not shown. To see them, rerun with: --leak-check=full --show-reachable=yes For counts of detected and suppressed errors, rerun with: -v ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 105 from 59) used_suppression: 36 todo_suppress_dlopen_leak used_suppression: 1 suppress_nss_leak used_suppression: 2 todo_suppress_wine_alloc_module_leak used_suppression: 1 todo_suppress_wine_init_load_order_leak used_suppression: 20 glibc-2.10-on-SUSE-10.3-(x86) used_suppression: 81 dl-hack3-cond-1