Module: wine Branch: master Commit: 26f3c14d6b95e42b47b2e153be3b6a26d64b87ed URL: http://source.winehq.org/git/wine.git/?a=commit;h=26f3c14d6b95e42b47b2e153be...
Author: Michael Mc Donnell michael@mcdonnell.dk Date: Wed Oct 19 15:11:32 2011 -0400
shell32: Set pointer to NULL after free to avoid double free.
---
dlls/shell32/shfldr_unixfs.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/shell32/shfldr_unixfs.c b/dlls/shell32/shfldr_unixfs.c index 9649df8..606fa84 100644 --- a/dlls/shell32/shfldr_unixfs.c +++ b/dlls/shell32/shfldr_unixfs.c @@ -2440,6 +2440,7 @@ static HRESULT WINAPI UnixSubFolderIterator_IEnumIDList_Next(IEnumIDList* iface, !UNIXFS_is_pidl_of_type(rgelt[i], This->m_fFilter)) { SHFree(rgelt[i]); + rgelt[i] = NULL; continue; } memset(((PBYTE)rgelt[i])+rgelt[i]->mkid.cb, 0, sizeof(USHORT));