Commit 16c51fbe authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

kernel32: Fix memory leak in WCEL_MoveToHist.

parent f53b2588
......@@ -428,9 +428,9 @@ static void WCEL_MoveToHist(WCEL_Context* ctx, int idx)
if (WCEL_Grow(ctx, len))
{
WCEL_InsertString(ctx, data);
HeapFree(GetProcessHeap(), 0, data);
ctx->histPos = idx;
}
HeapFree(GetProcessHeap(), 0, data);
}
static void WCEL_FindPrevInHist(WCEL_Context* ctx)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment