diff --git a/dlls/twain_32/tests/dsm.c b/dlls/twain_32/tests/dsm.c index cf9acef5564..8f8e926ff0c 100644 --- a/dlls/twain_32/tests/dsm.c +++ b/dlls/twain_32/tests/dsm.c @@ -87,7 +87,10 @@ static TW_HANDLE alloc_and_set_onevalue(TW_UINT32 val, TW_UINT16 type) GlobalUnlock(hcontainer); } else + { + GlobalFree(hcontainer); hcontainer = 0; + } } return hcontainer; }