Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
eeb1826c
Commit
eeb1826c
authored
Dec 02, 2023
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Dec 04, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciwave: Use matching memory allocator (Coverity).
*pszTmpFileName will be freed with free() but it's allocated with HeapAlloc().
parent
c93440b7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
mciwave.c
dlls/mciwave/mciwave.c
+1
-3
No files found.
dlls/mciwave/mciwave.c
View file @
eeb1826c
...
...
@@ -432,9 +432,7 @@ static DWORD create_tmp_file(HMMIO* hFile, LPWSTR* pszTmpFileName)
return
MCIERR_FILE_NOT_FOUND
;
}
*
pszTmpFileName
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
MAX_PATH
*
sizeof
(
WCHAR
));
*
pszTmpFileName
=
calloc
(
1
,
MAX_PATH
*
sizeof
(
WCHAR
));
if
(
!
GetTempFileNameW
(
szTmpPath
,
szPrefix
,
0
,
*
pszTmpFileName
))
{
WARN
(
"can't retrieve temp file name!
\n
"
);
free
(
*
pszTmpFileName
);
...
...
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