Unconditionally free memory. Should make smatch happy.

This commit is contained in:
Robert Reif 2005-03-15 19:31:55 +00:00 committed by Alexandre Julliard
parent bf4dc2e152
commit 9329e8f831
1 changed files with 10 additions and 12 deletions

View File

@ -1092,12 +1092,11 @@ static HRESULT WINAPI DSPROPERTY_EnumerateA(
TRACE("calling Callback(%p,%p)\n", &data, ppd->Context);
(ppd->Callback)(&data, ppd->Context);
HeapFree(GetProcessHeap(),0,szInterface);
}
HeapFree(GetProcessHeap(),0,szInterface);
}
HeapFree(GetProcessHeap(),0,nameW);
}
HeapFree(GetProcessHeap(),0,nameW);
}
}
}
@ -1126,12 +1125,11 @@ static HRESULT WINAPI DSPROPERTY_EnumerateA(
TRACE("calling Callback(%p,%p)\n", &data, ppd->Context);
(ppd->Callback)(&data, ppd->Context);
HeapFree(GetProcessHeap(),0,szInterface);
}
HeapFree(GetProcessHeap(),0,szInterface);
}
HeapFree(GetProcessHeap(),0,nameW);
}
HeapFree(GetProcessHeap(),0,nameW);
}
}
}
@ -1198,12 +1196,12 @@ static HRESULT WINAPI DSPROPERTY_EnumerateW(
TRACE("calling Callback(%p,%p)\n", &data, ppd->Context);
(ppd->Callback)(&data, ppd->Context);
}
HeapFree(GetProcessHeap(),0,wInterface);
}
HeapFree(GetProcessHeap(),0,wInterface);
}
HeapFree(GetProcessHeap(),0,wDescription);
HeapFree(GetProcessHeap(),0,wModule);
}
HeapFree(GetProcessHeap(),0,wDescription);
HeapFree(GetProcessHeap(),0,wModule);
}
}
@ -1235,12 +1233,12 @@ static HRESULT WINAPI DSPROPERTY_EnumerateW(
TRACE("calling Callback(%p,%p)\n", &data, ppd->Context);
(ppd->Callback)(&data, ppd->Context);
}
HeapFree(GetProcessHeap(),0,wInterface);
}
HeapFree(GetProcessHeap(),0,wInterface);
}
HeapFree(GetProcessHeap(),0,wDescription);
HeapFree(GetProcessHeap(),0,wModule);
}
HeapFree(GetProcessHeap(),0,wDescription);
HeapFree(GetProcessHeap(),0,wModule);
}
}