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
7a8638d8
Commit
7a8638d8
authored
Feb 09, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Feb 10, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
itss: Reorder some code to avoid leaking memory on an error path.
Found by Smatch.
parent
e0b23217
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
storage.c
dlls/itss/storage.c
+4
-3
No files found.
dlls/itss/storage.c
View file @
7a8638d8
...
...
@@ -399,6 +399,10 @@ static HRESULT WINAPI ITSS_IStorageImpl_OpenStorage(
TRACE
(
"%p %s %p %u %p %u %p
\n
"
,
This
,
debugstr_w
(
pwcsName
),
pstgPriority
,
grfMode
,
snbExclude
,
reserved
,
ppstg
);
chmfile
=
chm_dup
(
This
->
chmfile
);
if
(
!
chmfile
)
return
E_FAIL
;
len
=
strlenW
(
This
->
dir
)
+
strlenW
(
pwcsName
)
+
1
;
path
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
)
);
strcpyW
(
path
,
This
->
dir
);
...
...
@@ -423,9 +427,6 @@ static HRESULT WINAPI ITSS_IStorageImpl_OpenStorage(
TRACE
(
"Resolving %s
\n
"
,
debugstr_w
(
path
));
chmfile
=
chm_dup
(
This
->
chmfile
);
if
(
!
chmfile
)
return
E_FAIL
;
return
ITSS_create_chm_storage
(
chmfile
,
path
,
ppstg
);
}
...
...
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