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
a46bfd64
Commit
a46bfd64
authored
Oct 28, 2012
by
André Hentschel
Committed by
Alexandre Julliard
Oct 29, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Don't leak memory allocated by heap_alloc_zero (coverity).
parent
c2233549
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
typelib.c
dlls/oleaut32/typelib.c
+5
-4
typelib2.c
dlls/oleaut32/typelib2.c
+2
-1
No files found.
dlls/oleaut32/typelib.c
View file @
a46bfd64
...
...
@@ -4070,10 +4070,10 @@ static ITypeLib2* ITypeLib2_Constructor_SLTG(LPVOID pLib, DWORD dwTLBLength)
SLTG_TypeInfoTail
*
pTITail
;
SLTG_MemberHeader
*
pMemHeader
;
if
(
strcmp
(
pBlkEntry
[
order
].
index_string
+
(
char
*
)
pMagic
,
pOtherTypeInfoBlks
[
i
].
index_name
))
{
FIXME_
(
typelib
)(
"Index strings don't match
\n
"
);
return
NULL
;
if
(
strcmp
(
pBlkEntry
[
order
].
index_string
+
(
char
*
)
pMagic
,
pOtherTypeInfoBlks
[
i
].
index_name
))
{
FIXME_
(
typelib
)(
"Index strings don't match
\n
"
);
heap_free
(
pOtherTypeInfoBlks
);
return
NULL
;
}
pTIHeader
=
pBlk
;
...
...
@@ -4189,6 +4189,7 @@ static ITypeLib2* ITypeLib2_Constructor_SLTG(LPVOID pLib, DWORD dwTLBLength)
if
(
i
!=
pTypeLibImpl
->
TypeInfoCount
)
{
FIXME
(
"Somehow processed %d TypeInfos
\n
"
,
i
);
heap_free
(
pOtherTypeInfoBlks
);
return
NULL
;
}
...
...
dlls/oleaut32/typelib2.c
View file @
a46bfd64
...
...
@@ -5272,7 +5272,8 @@ static ICreateTypeLib2 *ICreateTypeLib2_Constructor(SYSKIND syskind, LPCOLESTR f
if
(
failed
)
{
ICreateTypeLib2_fnRelease
(
&
create_tlib2
->
ICreateTypeLib2_iface
);
return
NULL
;
heap_free
(
create_tlib2
);
return
NULL
;
}
return
&
create_tlib2
->
ICreateTypeLib2_iface
;
...
...
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