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
e46c66a1
Commit
e46c66a1
authored
Jan 16, 2011
by
Andrew Nguyen
Committed by
Alexandre Julliard
Jan 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fusion: Avoid memory leaks on memory allocation failure in parse_display_name.
parent
3ed34dc3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
asmname.c
dlls/fusion/asmname.c
+10
-3
No files found.
dlls/fusion/asmname.c
View file @
e46c66a1
...
...
@@ -562,7 +562,10 @@ static HRESULT parse_display_name(IAssemblyNameImpl *name, LPCWSTR szAssemblyNam
str
=
strdupW
(
szAssemblyName
);
save
=
str
;
if
(
!
str
)
return
E_OUTOFMEMORY
;
{
hr
=
E_OUTOFMEMORY
;
goto
done
;
}
ptr
=
strchrW
(
str
,
','
);
if
(
ptr
)
*
ptr
=
'\0'
;
...
...
@@ -576,7 +579,10 @@ static HRESULT parse_display_name(IAssemblyNameImpl *name, LPCWSTR szAssemblyNam
name
->
name
=
strdupW
(
str
);
if
(
!
name
->
name
)
return
E_OUTOFMEMORY
;
{
hr
=
E_OUTOFMEMORY
;
goto
done
;
}
if
(
!
ptr
)
goto
done
;
...
...
@@ -622,7 +628,8 @@ static HRESULT parse_display_name(IAssemblyNameImpl *name, LPCWSTR szAssemblyNam
else
if
(
!
lstrcmpW
(
str
,
procarch
))
{
name
->
procarch
=
strdupW
(
ptr
);
hr
=
S_OK
;
if
(
!
name
->
procarch
)
hr
=
E_OUTOFMEMORY
;
}
if
(
FAILED
(
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