[PATCH] usp10/tests: Fix a buffer leak (Valgrind)

Aric Stewart aric at codeweavers.com
Tue Mar 14 14:33:09 CDT 2017


Signed-off-by: Aric Stewart <aric at codeweavers.com>

On 3/12/17 5:21 AM, Nikolay Sivov wrote:
> Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
> ---
>  dlls/usp10/tests/usp10.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/dlls/usp10/tests/usp10.c b/dlls/usp10/tests/usp10.c
> index 60ad99555f..e8a72cba18 100644
> --- a/dlls/usp10/tests/usp10.c
> +++ b/dlls/usp10/tests/usp10.c
> @@ -1186,6 +1186,7 @@ static inline void _test_shape_ok(int valid, HDC hdc, LPCWSTR string,
>      }
>  
>  cleanup:
> +    HeapFree(GetProcessHeap(),0,string2);
>      HeapFree(GetProcessHeap(),0,logclust2);
>      HeapFree(GetProcessHeap(),0,charProp2);
>      HeapFree(GetProcessHeap(),0,glyphs2);
> 



More information about the wine-patches mailing list