Module: wine Branch: master Commit: e091a7b8178cf515864b82ae8239f4e977f39179 URL: https://gitlab.winehq.org/wine/wine/-/commit/e091a7b8178cf515864b82ae8239f4e...
Author: Rémi Bernon rbernon@codeweavers.com Date: Wed Jan 25 02:10:29 2023 +0100
oledb32/tests: Avoid use-after-free and unused assignment.
---
dlls/oledb32/tests/database.c | 4 ---- 1 file changed, 4 deletions(-)
diff --git a/dlls/oledb32/tests/database.c b/dlls/oledb32/tests/database.c index 5d99aef7a89..26e3ebf2186 100644 --- a/dlls/oledb32/tests/database.c +++ b/dlls/oledb32/tests/database.c @@ -1043,13 +1043,9 @@ static void test_odbc_provider(void) ok(propidlist.cPropertyIDs == 14, "got %ld\n", propinfoset->cPropertyInfos);
for (i = 0; i < propidlist.cPropertyIDs; i++) - { ok(properties[i] == propidlist.rgPropertyIDs[i], "%ld, got %ld\n", i, propidlist.rgPropertyIDs[i]);
- propidlist.rgPropertyIDs[i] = propinfoset->rgPropertyInfos[i].dwPropertyID; - } - CoTaskMemFree(propidlist.rgPropertyIDs); CoTaskMemFree(propset); }