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
7ca31e83
Commit
7ca31e83
authored
Aug 19, 2009
by
Andrew Eikum
Committed by
Alexandre Julliard
Aug 20, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Repair leak on error path.
parent
a18fc6ec
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
storage32.c
dlls/ole32/storage32.c
+4
-2
No files found.
dlls/ole32/storage32.c
View file @
7ca31e83
...
...
@@ -3586,9 +3586,13 @@ BlockChainStream* Storage32Impl_SmallBlocksToBigBlocks(
}
while
(
cbTotalRead
.
QuadPart
<
size
.
QuadPart
);
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
size
.
u
.
HighPart
=
0
;
size
.
u
.
LowPart
=
0
;
if
(
FAILED
(
resRead
)
||
FAILED
(
resWrite
))
{
ERR
(
"conversion failed: resRead = 0x%08x, resWrite = 0x%08x
\n
"
,
resRead
,
resWrite
);
BlockChainStream_SetSize
(
bbTempChain
,
size
);
BlockChainStream_Destroy
(
bbTempChain
);
return
NULL
;
}
...
...
@@ -3597,8 +3601,6 @@ BlockChainStream* Storage32Impl_SmallBlocksToBigBlocks(
* Destroy the small block chain.
*/
propertyIndex
=
(
*
ppsbChain
)
->
ownerPropertyIndex
;
size
.
u
.
HighPart
=
0
;
size
.
u
.
LowPart
=
0
;
SmallBlockChainStream_SetSize
(
*
ppsbChain
,
size
);
SmallBlockChainStream_Destroy
(
*
ppsbChain
);
*
ppsbChain
=
0
;
...
...
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