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
1c30f780
Commit
1c30f780
authored
Nov 25, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Nov 25, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winepath: Free wine_get_(dos|unix)_file_name memory with HeapFree.
parent
a49838f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
winepath.c
programs/winepath/winepath.c
+2
-2
No files found.
programs/winepath/winepath.c
View file @
1c30f780
...
...
@@ -215,7 +215,7 @@ int __cdecl wmain(int argc, WCHAR *argv[])
{
printf
(
"%s%c"
,
unix_name
,
separator
);
}
free
(
unix_name
);
HeapFree
(
GetProcessHeap
(),
0
,
unix_name
);
break
;
}
...
...
@@ -262,7 +262,7 @@ int __cdecl wmain(int argc, WCHAR *argv[])
{
WideCharToMultiByte
(
CP_UNIXCP
,
0
,
windows_name
,
-
1
,
path
,
MAX_PATH
,
NULL
,
NULL
);
printf
(
"%s%c"
,
path
,
separator
);
free
(
windows_name
);
HeapFree
(
GetProcessHeap
(),
0
,
windows_name
);
}
else
printf
(
"%c"
,
separator
);
free
(
unix_name
);
...
...
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