mirror of
https://github.com/reactos/wine.git
synced 2025-01-19 10:13:01 +00:00
netapi32/tests: Fix a memory leak.
Found by Valgrind.
This commit is contained in:
parent
67963a76b4
commit
d81f9006de
@ -59,6 +59,8 @@ static void run_apibuf_tests(void)
|
||||
/* border reallocate cases */
|
||||
ok(pNetApiBufferReallocate(0, 1500, &p) == NERR_Success, "Reallocate with OldBuffer = NULL failed\n");
|
||||
ok(p != NULL, "No memory got allocated\n");
|
||||
ok(pNetApiBufferFree(p) == NERR_Success, "NetApiBufferFree failed\n");
|
||||
|
||||
ok(pNetApiBufferAllocate(1024, &p) == NERR_Success, "Memory not reserved\n");
|
||||
ok(pNetApiBufferReallocate(p, 0, &p) == NERR_Success, "Not freed\n");
|
||||
ok(p == NULL, "Pointer not cleared\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user