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
0346eac9
Commit
0346eac9
authored
Mar 16, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Mar 17, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Plug some memleaks on error paths (Smatch).
parent
c71b82f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
typelib2.c
dlls/oleaut32/typelib2.c
+9
-3
No files found.
dlls/oleaut32/typelib2.c
View file @
0346eac9
...
...
@@ -2482,8 +2482,10 @@ static HRESULT WINAPI ICreateTypeInfo2_fnLayOut(
for
(
iter2
=
This
->
typedata
->
next
->
next
;
iter2
!=
This
->
typedata
->
next
;
iter2
=
iter2
->
next
)
{
if
(
iter
==
iter2
)
continue
;
if
(
iter2
->
indice
==
iter
->
indice
)
if
(
iter2
->
indice
==
iter
->
indice
)
{
HeapFree
(
GetProcessHeap
(),
0
,
typedata
);
return
E_ACCESSDENIED
;
}
}
break
;
...
...
@@ -2495,15 +2497,19 @@ static HRESULT WINAPI ICreateTypeInfo2_fnLayOut(
iter
->
u
.
data
[
0
]
=
(
iter
->
u
.
data
[
0
]
&
0xffff
)
|
(
i
<<
16
);
if
((
iter
->
u
.
data
[
3
]
&
1
)
!=
(
user_vft
&
1
))
if
((
iter
->
u
.
data
[
3
]
&
1
)
!=
(
user_vft
&
1
))
{
HeapFree
(
GetProcessHeap
(),
0
,
typedata
);
return
TYPE_E_INVALIDID
;
}
if
(
user_vft
&
1
)
{
if
(
user_vft
<
(
iter
->
u
.
data
[
3
]
&
0xffff
))
user_vft
=
(
iter
->
u
.
data
[
3
]
&
0xffff
);
if
((
iter
->
u
.
data
[
3
]
&
0xffff
)
<
This
->
typeinfo
->
cbSizeVft
)
if
((
iter
->
u
.
data
[
3
]
&
0xffff
)
<
This
->
typeinfo
->
cbSizeVft
)
{
HeapFree
(
GetProcessHeap
(),
0
,
typedata
);
return
TYPE_E_INVALIDID
;
}
}
else
if
(
This
->
typekind
!=
TKIND_MODULE
)
{
iter
->
u
.
data
[
3
]
=
(
iter
->
u
.
data
[
3
]
&
0xffff0000
)
|
This
->
typeinfo
->
cbSizeVft
;
This
->
typeinfo
->
cbSizeVft
+=
4
;
...
...
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