Commit 114a0636 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

win32u/hook: Fix a leak on earlier return (Coverity).

parent 9d58733b
...@@ -302,6 +302,7 @@ static LRESULT call_hook( struct win_hook_params *info, const WCHAR *module ) ...@@ -302,6 +302,7 @@ static LRESULT call_hook( struct win_hook_params *info, const WCHAR *module )
if (thread_info->hook_call_depth >= 25) if (thread_info->hook_call_depth >= 25)
{ {
WARN("Too many hooks called recursively, skipping call.\n"); WARN("Too many hooks called recursively, skipping call.\n");
if (params != info) free( params );
return 0; return 0;
} }
......
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