From: Sebastian Lackner Subject: [2/2] ntdll: Avoid leaking activation context in RtlCreateUserThread. (Valgrind) Message-Id: <53A77977.9050005@fds-team.de> Date: Mon, 23 Jun 2014 02:48:55 +0200 Fixes: https://bugs.winehq.org/show_bug.cgi?id=36784 The refcount has already been increased before, no need to increase it again. --- dlls/ntdll/thread.c | 2 -- 1 file changed, 2 deletions(-) From 3c70116f11ddfbf87c676b7e717b789aae1b9185 Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Sun, 22 Jun 2014 22:25:52 +0200 Subject: ntdll: Avoid leaking activation context in RtlCreateUserThread. --- dlls/ntdll/thread.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/dlls/ntdll/thread.c b/dlls/ntdll/thread.c index 6e2ed67..c8461b0 100644 --- a/dlls/ntdll/thread.c +++ b/dlls/ntdll/thread.c @@ -520,8 +520,6 @@ NTSTATUS WINAPI RtlCreateUserThread( HANDLE process, const SECURITY_DESCRIPTOR * frame->ActivationContext = actctx; frame->Flags = 0; teb->ActivationContextStack.ActiveFrame = frame; - - RtlAddRefActivationContext(actctx); } info = (struct startup_info *)(teb + 1); -- 1.7.9.5