Uuid创建内存泄漏

时间:2020-05-20 21:59:42

标签: c windows memory-leaks uuid

谁能解释为什么我的内存泄漏(+1.55 kB)和下面的代码,我应该怎么做才能避免它?

void TestGuid() {
    UUID id;
    ZeroMemory(&id, sizeof(UUID));
    UuidCreate(&id);
}

int _tmain(int argc, _TCHAR* argv[]) {
    TestGuid(); // Memory Snapshot 1 here
    return 0; // Memory Snapshot 2 here
}

enter image description here

0 个答案:

没有答案