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
8ae0d17d
Commit
8ae0d17d
authored
Sep 26, 2007
by
Lionel_Debroux
Committed by
Alexandre Julliard
Sep 27, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mlang: Fix memory leaks in error path (found by Smatch).
parent
03f3a40a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
mlang.c
dlls/mlang/mlang.c
+2
-3
No files found.
dlls/mlang/mlang.c
View file @
8ae0d17d
...
...
@@ -634,10 +634,9 @@ HRESULT WINAPI ConvertINetString(
pDstStrW
=
HeapAlloc
(
GetProcessHeap
(),
0
,
cDstSizeW
*
sizeof
(
WCHAR
));
hr
=
ConvertINetMultiByteToUnicode
(
pdwMode
,
dwSrcEncoding
,
pSrcStr
,
pcSrcSize
,
pDstStrW
,
&
cDstSizeW
);
if
(
hr
!
=
S_OK
)
return
hr
;
if
(
hr
=
=
S_OK
)
hr
=
ConvertINetUnicodeToMultiByte
(
pdwMode
,
dwDstEncoding
,
pDstStrW
,
&
cDstSizeW
,
pDstStr
,
pcDstSize
)
;
hr
=
ConvertINetUnicodeToMultiByte
(
pdwMode
,
dwDstEncoding
,
pDstStrW
,
&
cDstSizeW
,
pDstStr
,
pcDstSize
);
HeapFree
(
GetProcessHeap
(),
0
,
pDstStrW
);
return
hr
;
}
...
...
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