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
0f5d6827
Commit
0f5d6827
authored
Aug 01, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Remove redundant NULL checks before HeapFree and fix a memleak (Smatch).
parent
5d4d5b16
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
saxreader.c
dlls/msxml3/saxreader.c
+6
-10
No files found.
dlls/msxml3/saxreader.c
View file @
0f5d6827
...
...
@@ -806,16 +806,12 @@ static HRESULT SAXAttributes_create(saxattributes **attr,
||
!
attributes
->
szURI
||
!
attributes
->
szValue
||
!
attributes
->
szQName
)
{
if
(
attributes
->
szLocalname
)
HeapFree
(
GetProcessHeap
(),
0
,
attributes
->
szLocalname
);
if
(
attributes
->
szPrefix
)
HeapFree
(
GetProcessHeap
(),
0
,
attributes
->
szPrefix
);
if
(
attributes
->
szURI
)
HeapFree
(
GetProcessHeap
(),
0
,
attributes
->
szURI
);
if
(
attributes
->
szValue
)
HeapFree
(
GetProcessHeap
(),
0
,
attributes
->
szValue
);
if
(
attributes
->
szQName
)
HeapFree
(
GetProcessHeap
(),
0
,
attributes
->
szQName
);
HeapFree
(
GetProcessHeap
(),
0
,
attributes
->
szLocalname
);
HeapFree
(
GetProcessHeap
(),
0
,
attributes
->
szPrefix
);
HeapFree
(
GetProcessHeap
(),
0
,
attributes
->
szURI
);
HeapFree
(
GetProcessHeap
(),
0
,
attributes
->
szValue
);
HeapFree
(
GetProcessHeap
(),
0
,
attributes
->
szQName
);
HeapFree
(
GetProcessHeap
(),
0
,
attributes
);
return
E_FAIL
;
}
...
...
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