Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
7b69313b
Commit
7b69313b
authored
Jun 07, 2023
by
Alex Henrie
Committed by
Alexandre Julliard
Jun 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hhctrl: Fix memory leak on error path in resolve_filename (scan-build).
parent
2cabb3f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
hhctrl.c
dlls/hhctrl.ocx/hhctrl.c
+8
-1
No files found.
dlls/hhctrl.ocx/hhctrl.c
View file @
7b69313b
...
...
@@ -148,7 +148,14 @@ static BOOL resolve_filename(const WCHAR *env_filename, WCHAR *fullname, DWORD b
free
(
filename
);
return
(
GetFileAttributesW
(
fullname
)
!=
INVALID_FILE_ATTRIBUTES
);
if
(
GetFileAttributesW
(
fullname
)
==
INVALID_FILE_ATTRIBUTES
)
{
if
(
window
)
free
(
*
window
);
if
(
index
)
free
(
*
index
);
return
FALSE
;
}
return
TRUE
;
}
/******************************************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment